signal backend, app cleanup

This commit is contained in:
j 2023-07-24 12:05:45 +01:00
commit 6f18890739
43 changed files with 695 additions and 124 deletions

View file

@ -0,0 +1,19 @@
[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