Restart services always with systemd

This essentially results in the same behaviour legacy upstream was exploiting in upstart. Normally I would argue that depending on such a feature as part of an applications runtime feature-set is bad. This applies, but until we can get that sorted at another leevel this makes everything work as intendend when running tthrough systemd.
This commit is contained in:
Lucas Bickel 2017-03-18 12:28:17 +01:00
parent 7e68a68732
commit 90ac159a52
4 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Group=celery
Environment=RMQ_CONFIG_FILE=/etc/airtime/airtime.conf
WorkingDirectory=/srv/airtime
ExecStart=/bin/celery worker -A airtime-celery.tasks:celery --time-limit=300 --concurrency=1 --config=celeryconfig -l INFO
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=Airtime Liquidsoap Service
ExecStart=/usr/bin/airtime-liquidsoap
User=libretime-playout
Group=libretime-playout
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=Airtime Playout Service
ExecStart=/usr/bin/airtime-playout
User=libretime-pypo
Group=libretime-pypo
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=LibreTime Media Analyzer Service
ExecStart=/usr/bin/airtime_analyzer
User=airtime-analyzer
Group=airtime-analyzer
Restart=always
[Install]
WantedBy=multi-user.target