[Unit]
Description=libvirt proxy daemon
Documentation=man:virtproxyd(8)
Documentation=https://libvirt.org/
BindsTo=virtproxyd.socket
Wants=virtproxyd-ro.socket
Wants=virtproxyd-admin.socket
After=virtproxyd.socket
After=virtproxyd-ro.socket
After=virtproxyd-admin.socket
Conflicts=libvirtd.service
After=libvirtd.service
After=network.target
After=dbus.service
After=apparmor.service

[Service]
Type=notify-reload
Environment=VIRTPROXYD_ARGS="--timeout 120"
EnvironmentFile=-/etc/conf.d/virtproxyd
ExecStart=/usr/bin/virtproxyd $VIRTPROXYD_ARGS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target
Also=virtproxyd.socket
Also=virtproxyd-ro.socket
Also=virtproxyd-admin.socket
