phantasmobile/etc/systemd/system/phantasmobile-cron.service
2023-07-24 19:08:30 +01:00

20 lines
505 B
Desktop File

[Unit]
Description=phantasmobile cron
After=phantasmobile-tasks.service
[Service]
Type=simple
Restart=always
User=phantasmobile
Group=phantasmobile
PIDFile=/run/phantasmobile/phantasmobile-cron.pid
WorkingDirectory=/srv/phantasmobile
ExecStart=/srv/phantasmobile/venv/bin/celery \
-A app beat -l info \
--scheduler django_celery_beat.schedulers:DatabaseScheduler \
--pidfile /run/phantasmobile/phantasmobile-cron.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target