19 lines
455 B
Desktop File
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
|