mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
locking,logging: put a strong dep from admin socket to main socket
It doesn't make sense to have the admin socket active if the main socket is not running, so bind their lifecycle together. This ensures that if primary socket is stopped, the corresponding admin socket is also stopped. In the reverse, starting the admin socket will also automatically start the primary socket. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
5a23d22b6c
commit
cfd955b03a
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Virtual machine lock manager admin socket
|
Description=Virtual machine lock manager admin socket
|
||||||
Before=libvirtd.service
|
Before=libvirtd.service
|
||||||
|
BindsTo=virtlockd.socket
|
||||||
|
After=virtlockd.socket
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=@localstatedir@/run/libvirt/virtlockd-admin-sock
|
ListenStream=@localstatedir@/run/libvirt/virtlockd-admin-sock
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Virtual machine log manager socket
|
Description=Virtual machine log manager socket
|
||||||
Before=libvirtd.service
|
Before=libvirtd.service
|
||||||
|
BindsTo=virtlogd.socket
|
||||||
|
After=virtlogd.socket
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=@localstatedir@/run/libvirt/virtlogd-admin-sock
|
ListenStream=@localstatedir@/run/libvirt/virtlogd-admin-sock
|
||||||
|
Loading…
Reference in New Issue
Block a user