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

19 lines
455 B
Desktop File

[Unit]
Description=phantasmobile tasks
After=postgresql.service
[Service]
Type=simple
Restart=always
User=phantasmobile
Group=phantasmobile
PIDFile=/run/phantasmobile/phantasmobile-tasks.pid
WorkingDirectory=/srv/phantasmobile
ExecStart=/srv/phantasmobile/venv/bin/celery \
-A app worker -l info \
-Q default -c 4 \
--pidfile /run/phantasmobile/phantasmobile-tasks.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target