Update createvm.service
This commit is contained in:
parent
8e6181d8f7
commit
ad01be02f0
1 changed files with 9 additions and 2 deletions
|
|
@ -3,8 +3,15 @@ Description=Create VM service
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/python3 /opt/createvm-web/app.py
|
# Activatie van de virtuele omgeving
|
||||||
WorkingDirectory/opt/createvm-web
|
Environment="VIRTUAL_ENV=/opt/create-vm/.venv"
|
||||||
|
Environment="PATH=/opt/createvm-web/.venv/bin:/usr/bin"
|
||||||
|
|
||||||
|
# Command dat je app start
|
||||||
|
ExecStart=/opt/createvm-web/.venv/bin/python3 /opt/createvm-web/app.py
|
||||||
|
|
||||||
|
# Werkomgeving van de applicatie
|
||||||
|
WorkingDirectory=/opt/createvm-web
|
||||||
User=root
|
User=root
|
||||||
Restart=always
|
Restart=always
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue