You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/deploy/virt-cloud-engine.service

26 lines
720 B
INI

[Unit]
Description=Virt Cloud private libvirt engine
After=network-online.target
Wants=network-online.target
[Service]
Type=exec
User=root
Group=root
WorkingDirectory=/home/virt-cloud/engine
Environment=CLOUD_ENGINE_CONFIG=/home/virt-cloud/runtime/engine.json
Environment=PYTHONDONTWRITEBYTECODE=1
ExecStart=/home/virt-cloud/engine/.venv/bin/python -m uvicorn virsh_panel.internal:create_engine --factory --host 127.0.0.1 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips 127.0.0.1 --no-access-log
Restart=on-failure
RestartSec=5
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=false
ReadWritePaths=/home/virt-cloud/runtime
LimitCORE=0
[Install]
WantedBy=multi-user.target