signal backend, app cleanup
This commit is contained in:
parent
4b157ed1d1
commit
6f18890739
43 changed files with 695 additions and 124 deletions
18
etc/systemd/system/phantasmobile.service
Normal file
18
etc/systemd/system/phantasmobile.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=phantasmobile daemon
|
||||
After=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=phantasmobile
|
||||
Group=phantasmobile
|
||||
WorkingDirectory=/srv/phantasmobile
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStart=/srv/phantasmobile/venv/bin/gunicorn \
|
||||
app.wsgi:application \
|
||||
-c app/gunicorn_config.py \
|
||||
-p /run/phantasmobile/phantasmobile.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue