Update createvm.service
This commit is contained in:
parent
ad01be02f0
commit
78e2557da8
1 changed files with 2 additions and 9 deletions
|
|
@ -3,15 +3,8 @@ Description=Create VM service
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
# Activatie van de virtuele omgeving
|
||||
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
|
||||
ExecStart=/usr/bin/python3 /opt/createvm-web/app.py
|
||||
WorkingDirectory/opt/createvm-web
|
||||
User=root
|
||||
Restart=always
|
||||
StandardOutput=syslog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue