2014-10-10 14:16:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=pandora encoding daemon
|
2016-09-07 07:00:48 +00:00
|
|
|
After=postgresql.service rabbitmq-server.service
|
2014-10-10 14:16:54 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
User=pandora
|
|
|
|
Group=pandora
|
|
|
|
PIDFile=/run/pandora/encoding.pid
|
|
|
|
WorkingDirectory=/srv/pandora/pandora
|
|
|
|
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
|