mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-27 08:35:22 +00:00
24 lines
532 B
SYSTEMD
24 lines
532 B
SYSTEMD
|
[Unit]
|
||
|
Description=Webvirt Cloud NOVNCD
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Restart=on-failure
|
||
|
RestartSec=10
|
||
|
User=www-data
|
||
|
Group=www-data
|
||
|
LimitNOFILE=64000
|
||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||
|
EnvironmentFile=/etc/default/webvirt
|
||
|
|
||
|
ExecStart=/bin/bash -c "cd ${WEBVIRT_PATH};${WEBVIRT_PATH}/venv/bin/python3 ${WEBVIRT_PATH}/console/novncd"
|
||
|
|
||
|
# Make sure stderr/stdout is captured in the systemd journal.
|
||
|
StandardOutput=journal
|
||
|
StandardError=journal
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|