systemd: Switch virtinterfaced to common templates

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-09-19 19:57:40 +02:00
parent cae35da54d
commit 9f2ca1478f
2 changed files with 0 additions and 29 deletions

View File

@ -44,11 +44,7 @@ if conf.has('WITH_INTERFACE')
virt_daemon_units += {
'service': 'virtinterfaced',
'service_in': files('virtinterfaced.service.in'),
'name': 'Libvirt interface',
'socket_in': libvirtd_socket_in,
'socket_ro_in': libvirtd_socket_ro_in,
'socket_admin_in': libvirtd_socket_admin_in,
}
openrc_init_files += {

View File

@ -1,25 +0,0 @@
[Unit]
Description=Virtualization interface daemon
Conflicts=libvirtd.service
Requires=virtinterfaced.socket
Requires=virtinterfaced-ro.socket
Requires=virtinterfaced-admin.socket
After=network.target
After=dbus.service
After=apparmor.service
Documentation=man:virtinterfaced(8)
Documentation=https://libvirt.org
[Service]
Type=notify
Environment=VIRTINTERFACED_ARGS="--timeout 120"
EnvironmentFile=-@initconfdir@/virtinterfaced
ExecStart=@sbindir@/virtinterfaced $VIRTINTERFACED_ARGS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
Also=virtinterfaced.socket
Also=virtinterfaced-ro.socket
Also=virtinterfaced-admin.socket