1
0
Fork 0
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:
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,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

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