mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
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:
parent
cae35da54d
commit
9f2ca1478f
@ -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 += {
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user