2014-10-10 14:16:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=pandora encoding daemon
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
User=pandora
|
|
|
|
Group=pandora
|
|
|
|
PIDFile=/run/pandora/encoding.pid
|
|
|
|
WorkingDirectory=/srv/pandora/pandora
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
|
|
|
celeryd \
|
|
|
|
-Q encoding -n pandora-encoding \
|
|
|
|
--pidfile /run/pandora/encoding.pid \
|
|
|
|
-l INFO
|
2016-03-16 15:55:05 +00:00
|
|
|
ExecReload=/bin/kill -TERM $MAINPID
|
2014-10-10 14:16:54 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|