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.
32 lines
917 B
INI
32 lines
917 B
INI
[Unit]
|
|
Description=Virt Cloud host virtualization agent
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
ExecStart=/usr/local/sbin/virt-agent -config /etc/virt-agent/config.json
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
UMask=0077
|
|
# UMask/StateDirectoryMode only harden newly created files; the binary does
|
|
# not audit the owner, group, or mode of its readable JSON configuration.
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
StateDirectory=virt-agent
|
|
StateDirectoryMode=0700
|
|
# The Agent writes only its Bolt journal and traffic state here. Configured
|
|
# NVRAM and libvirt storage paths are written by the separate libvirt/QEMU
|
|
# service through qemu:///system, so granting them to this mount namespace
|
|
# would broaden the Agent unnecessarily.
|
|
ReadWritePaths=/var/lib/virt-agent
|
|
LimitCORE=0
|
|
TimeoutStopSec=30
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|