Update createvm.service

This commit is contained in:
Blackwhitebear8 2024-12-09 16:46:47 +01:00
parent 8e6181d8f7
commit ad01be02f0

View file

@ -3,8 +3,15 @@ Description=Create VM service
After=network.target
[Service]
ExecStart=/usr/bin/python3 /opt/createvm-web/app.py
WorkingDirectory/opt/createvm-web
# 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
User=root
Restart=always
StandardOutput=syslog