mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
debian: adding sysconfig environment config
This commit is contained in:
parent
aeeb049403
commit
ec664ea207
3 changed files with 11 additions and 3 deletions
6
debian/sysconfig/thalos-server
vendored
Normal file
6
debian/sysconfig/thalos-server
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Environment variables for thalos-server
|
||||
#
|
||||
# This is file sourced by the systemd unit file
|
||||
|
||||
# Append additional cli flags if needed. see: thalos-server -h
|
||||
THALOS_SERVER_ARGS="-c /etc/thalos/config.yml"
|
||||
5
debian/thalos-server.service
vendored
5
debian/thalos-server.service
vendored
|
|
@ -6,9 +6,10 @@ After=network.target
|
|||
User=thalos
|
||||
Group=thalos
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/thalos-server -c /etc/thalos/config.yml
|
||||
EnvironmentFile=-/etc/sysconfig/thalos-server
|
||||
ExecStart=/usr/bin/thalos-server $THALOS_SERVER_ARGS
|
||||
ExecReload=kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
3
debian/thalos.install
vendored
3
debian/thalos.install
vendored
|
|
@ -1 +1,2 @@
|
|||
debian/thalos-server.service /lib/systemd/system
|
||||
debian/thalos-server.service /lib/systemd/system
|
||||
debian/sysconfig/thalos-server /etc/sysconfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue