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

20 lines
455 B
SYSTEMD
Raw Permalink Normal View History

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