ansible-roles/roles/funkwhale/templates/funkwhale-beat.service.j2
2021-12-01 19:13:34 +01:00

23 lines
640 B
Django/Jinja

[Unit]
Description=Funkwhale celery beat process
After=redis.service postgresql.service
[Service]
User={{ funkwhale_user }}
WorkingDirectory={{ funkwhale_root_dir }}/api
EnvironmentFile={{ funkwhale_root_dir }}/config/.env
ExecStart={{ funkwhale_root_dir }}/venv/bin/celery -A funkwhale_api.taskapp beat -l INFO --pidfile /tmp/funkwhale-beat.pid --schedule /tmp/funkwhale-beat-schedule.db
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=1024M
SyslogIdentifier=funkwhale_{{ funkwhale_id }}-beat
Restart=on-failure
StartLimitInterval=0
RestartSec=30
[Install]
WantedBy=multi-user.target