Update createvm.service

This commit is contained in:
Blackwhitebear8 2024-12-09 16:50:09 +01:00
parent ad01be02f0
commit 78e2557da8

View file

@ -3,15 +3,8 @@ Description=Create VM service
After=network.target After=network.target
[Service] [Service]
# Activatie van de virtuele omgeving ExecStart=/usr/bin/python3 /opt/createvm-web/app.py
Environment="VIRTUAL_ENV=/opt/create-vm/.venv" WorkingDirectory/opt/createvm-web
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