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