23 lines
592 B
Desktop File
23 lines
592 B
Desktop File
[Unit]
|
|
Description=Schon Celery Beat Scheduler
|
|
Documentation=https://git.wiseless.xyz/fureunoir/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
|