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
|
2021-11-15 11:42:32 +00:00
|
|
|
EnvironmentFile=/srv/pandora/pandora/tasks.conf
|
2014-10-10 14:16:54 +00:00
|
|
|
PIDFile=/run/pandora/tasks.pid
|
|
|
|
WorkingDirectory=/srv/pandora/pandora
|
2019-07-16 11:22:22 +00:00
|
|
|
ExecStart=/srv/pandora/bin/celery \
|
2019-07-16 11:27:35 +00:00
|
|
|
-A app worker \
|
2014-10-10 14:16:54 +00:00
|
|
|
-Q default,celery -n pandora-default \
|
|
|
|
--pidfile /run/pandora/tasks.pid \
|
2021-11-15 11:42:32 +00:00
|
|
|
-c $CONCURRENCY \
|
2023-07-27 13:35:53 +00:00
|
|
|
--max-tasks-per-child $MAX_TASKS_PER_CHILD \
|
2021-11-15 11:42:32 +00:00
|
|
|
-l $LOGLEVEL
|
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
|