sintonia/installer/systemd/airtime-celery.service
Lucas Bickel 90ac159a52 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.
2017-03-18 12:28:17 +01:00

14 lines
361 B
Desktop File

[Unit]
Description=LibreTime Celery Service
After=network.target
[Service]
User=celery
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