mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
systemd: Switch virtnodedevd 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
3b73d377af
commit
cae35da54d
@ -52,11 +52,7 @@ if conf.has('WITH_NODE_DEVICES')
|
||||
|
||||
virt_daemon_units += {
|
||||
'service': 'virtnodedevd',
|
||||
'service_in': files('virtnodedevd.service.in'),
|
||||
'name': 'Libvirt nodedev',
|
||||
'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 nodedev daemon
|
||||
Conflicts=libvirtd.service
|
||||
Requires=virtnodedevd.socket
|
||||
Requires=virtnodedevd-ro.socket
|
||||
Requires=virtnodedevd-admin.socket
|
||||
After=network.target
|
||||
After=dbus.service
|
||||
After=apparmor.service
|
||||
Documentation=man:virtnodedevd(8)
|
||||
Documentation=https://libvirt.org
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
Environment=VIRTNODEDEVD_ARGS="--timeout 120"
|
||||
EnvironmentFile=-@initconfdir@/virtnodedevd
|
||||
ExecStart=@sbindir@/virtnodedevd $VIRTNODEDEVD_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=virtnodedevd.socket
|
||||
Also=virtnodedevd-ro.socket
|
||||
Also=virtnodedevd-admin.socket
|
Loading…
Reference in New Issue
Block a user