Add systemd unit file
This commit is contained in:
parent
6a60945662
commit
f3cb472a83
12
virtual-metro.service
Normal file
12
virtual-metro.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=virtual-metro
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/virtual-metro
|
||||
ExecStart=/usr/bin/gunicorn -w 4 -b 127.0.0.1:8111 virtual_metro:app
|
||||
User=vmetro
|
||||
Group=vmetro
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user