2014-10-10 14:16:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=pandora tasks 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/tasks.pid
|
|
|
|
WorkingDirectory=/srv/pandora/pandora
|
2019-07-16 11:22:22 +00:00
|
|
|
ExecStart=/srv/pandora/bin/celery \
|
|
|
|
-A pandora worker \
|
2014-10-10 14:16:54 +00:00
|
|
|
-Q default,celery -n pandora-default \
|
|
|
|
--pidfile /run/pandora/tasks.pid \
|
2017-02-15 18:02:34 +00:00
|
|
|
--maxtasksperchild 1000 \
|
2014-10-10 14:16:54 +00:00
|
|
|
-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
|