1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-07-03 11:53:41 +02:00

debian: adding sysconfig environment config

This commit is contained in:
Henrik Hautakoski 2024-06-27 08:53:32 +02:00
parent aeeb049403
commit ec664ea207
3 changed files with 11 additions and 3 deletions

6
debian/sysconfig/thalos-server vendored Normal file
View 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"

View file

@ -6,7 +6,8 @@ After=network.target
User=thalos User=thalos
Group=thalos Group=thalos
Type=simple 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 ExecReload=kill -HUP $MAINPID
Restart=on-failure Restart=on-failure

View file

@ -1 +1,2 @@
debian/thalos-server.service /lib/systemd/system debian/thalos-server.service /lib/systemd/system
debian/sysconfig/thalos-server /etc/sysconfig