Merge pull request #241 from radiorabe/feature/update-install

Update installer with systemd detecting code
This commit is contained in:
Robb 2017-07-10 23:28:23 -04:00 committed by GitHub
commit 6e2cb2b2a8
5 changed files with 497 additions and 195 deletions

View file

@ -0,0 +1,18 @@
description "LibreTime Celery Service"
author "help@libretime.org"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
setuid celery
setgid celery
env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
env RMQ_CONFIG_FILE=/etc/airtime/airtime.conf
chdir /srv/airtime
exec celery worker -A airtime-celery.tasks:celery --time-limit=300 --concurrency=1 --config=celeryconfig -l INFO