Add systemd unit file

This commit is contained in:
RunasSudo 2018-12-31 20:44:48 +11:00
parent 6a60945662
commit f3cb472a83
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

12
virtual-metro.service Normal file
View 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