22 lines
No EOL
514 B
Desktop File
22 lines
No EOL
514 B
Desktop File
[Unit]
|
|
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
|
|
User=root
|
|
Restart=always
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=createvm
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |