pandora/etc/systemd/system/pandora-tasks.service

24 lines
571 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=pandora tasks daemon
After=postgresql.service rabbitmq-server.service
[Service]
Type=simple
Restart=always
User=pandora
Group=pandora
EnvironmentFile=/srv/pandora/pandora/tasks.conf
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 \
-Q default,celery -n pandora-default \
--pidfile /run/pandora/tasks.pid \
-c $CONCURRENCY \
2023-07-27 13:35:53 +00:00
--max-tasks-per-child $MAX_TASKS_PER_CHILD \
-l $LOGLEVEL
ExecReload=/bin/kill -TERM $MAINPID
[Install]
WantedBy=multi-user.target