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

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

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