mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
systemd: Switch virtnwfilterd 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
9f2ca1478f
commit
89b12310ae
@ -50,11 +50,7 @@ if conf.has('WITH_NWFILTER')
|
|||||||
|
|
||||||
virt_daemon_units += {
|
virt_daemon_units += {
|
||||||
'service': 'virtnwfilterd',
|
'service': 'virtnwfilterd',
|
||||||
'service_in': files('virtnwfilterd.service.in'),
|
|
||||||
'name': 'Libvirt nwfilter',
|
'name': 'Libvirt nwfilter',
|
||||||
'socket_in': libvirtd_socket_in,
|
|
||||||
'socket_ro_in': libvirtd_socket_ro_in,
|
|
||||||
'socket_admin_in': libvirtd_socket_admin_in,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
openrc_init_files += {
|
openrc_init_files += {
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Virtualization nwfilter daemon
|
|
||||||
Conflicts=libvirtd.service
|
|
||||||
Requires=virtnwfilterd.socket
|
|
||||||
Requires=virtnwfilterd-ro.socket
|
|
||||||
Requires=virtnwfilterd-admin.socket
|
|
||||||
After=network.target
|
|
||||||
After=dbus.service
|
|
||||||
After=apparmor.service
|
|
||||||
Documentation=man:virtnwfilterd(8)
|
|
||||||
Documentation=https://libvirt.org
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=notify
|
|
||||||
Environment=VIRTNWFILTERD_ARGS="--timeout 120"
|
|
||||||
EnvironmentFile=-@initconfdir@/virtnwfilterd
|
|
||||||
ExecStart=@sbindir@/virtnwfilterd $VIRTNWFILTERD_ARGS
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Also=virtnwfilterd.socket
|
|
||||||
Also=virtnwfilterd-ro.socket
|
|
||||||
Also=virtnwfilterd-admin.socket
|
|
Loading…
Reference in New Issue
Block a user