mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Add systemd service file
This commit is contained in:
parent
598c08545b
commit
6322697ac4
1 changed files with 13 additions and 0 deletions
13
scripts/gunicorn.service
Normal file
13
scripts/gunicorn.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Gunicorn - AdvLabDB
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=admin
|
||||
Group=admin
|
||||
WorkingDirectory=/home/admin/advlabdb
|
||||
ExecStart=/home/admin/.local/bin/poetry run gunicorn --workers 5 --bind unix:gunicorn.sock --umask 007 --log-file /var/log/advlabdb/gunicorn.log run:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue