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

21 lines
505 B
SYSTEMD
Raw Permalink Normal View History

2023-07-24 11:05:45 +00:00
[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