mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 18:33:11 +00:00
cfd955b03a
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>
14 lines
282 B
SYSTEMD
14 lines
282 B
SYSTEMD
[Unit]
|
|
Description=Virtual machine lock manager admin socket
|
|
Before=libvirtd.service
|
|
BindsTo=virtlockd.socket
|
|
After=virtlockd.socket
|
|
|
|
[Socket]
|
|
ListenStream=@localstatedir@/run/libvirt/virtlockd-admin-sock
|
|
Service=virtlockd.service
|
|
SocketMode=0600
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|