schon/systemd/schon-beat.service
2026-01-25 23:16:38 +03:00

23 lines
589 B
Desktop File

[Unit]
Description=Schon Celery Beat Scheduler
Documentation=https://gitlab.com/wiseless.xyz/schon
After=network.target postgresql.service redis.service schon-worker.service
Wants=postgresql.service redis.service schon-worker.service
[Service]
Type=simple
User=schon
Group=schon
WorkingDirectory=/opt/schon
EnvironmentFile=/opt/schon/.env
ExecStart=/opt/schon/.venv/bin/celery \
-A schon beat \
-l info \
--scheduler django_celery_beat.schedulers:DatabaseScheduler
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target