mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
systemd: Switch virtsecretd 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
89b12310ae
commit
22d218d51c
@ -33,11 +33,7 @@ if conf.has('WITH_SECRETS')
|
||||
|
||||
virt_daemon_units += {
|
||||
'service': 'virtsecretd',
|
||||
'service_in': files('virtsecretd.service.in'),
|
||||
'name': 'Libvirt secret',
|
||||
'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 secret daemon
|
||||
Conflicts=libvirtd.service
|
||||
Requires=virtsecretd.socket
|
||||
Requires=virtsecretd-ro.socket
|
||||
Requires=virtsecretd-admin.socket
|
||||
After=network.target
|
||||
After=dbus.service
|
||||
After=apparmor.service
|
||||
Documentation=man:virtsecretd(8)
|
||||
Documentation=https://libvirt.org
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
Environment=VIRTSECRETD_ARGS="--timeout 120"
|
||||
EnvironmentFile=-@initconfdir@/virtsecretd
|
||||
ExecStart=@sbindir@/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
|
Loading…
x
Reference in New Issue
Block a user