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

20 lines
463 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=pandora cron daemon
After=postgresql.service rabbitmq-server.service
[Service]
Type=simple
Restart=always
User=pandora
Group=pandora
PIDFile=/run/pandora/cron.pid
WorkingDirectory=/srv/pandora/pandora
2019-07-16 11:35:39 +00:00
ExecStart=/srv/pandora/bin/celery \
-A app beat \
2021-12-15 19:22:49 +00:00
--scheduler django_celery_beat.schedulers:DatabaseScheduler \
--pidfile /run/pandora/cron.pid \
-l INFO
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target