add systemd service
This commit is contained in:
parent
64323c366f
commit
035751acda
2 changed files with 23 additions and 0 deletions
15
matrix.service
Normal file
15
matrix.service
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Matrix Flask Application
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/matrix
|
||||
ExecStart=/usr/bin/gunicorn -b 0.0.0.0 -w 1 -k gthread main:app
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue