mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
virtlogd.socket: Tie lifecycle to libvirtd.service
We already guarantee that virtlogd.socket is enabled/disabled along with libvirtd.service, but if libvirtd.service has just been installed and is started before rebooting, then virtlogd.socket will not be running and guest startup will fail. Add Requires=virtlogd.socket to libvirtd.service to make sure virtlogd.socket is always started along with libvirtd.service, and add Before=libvirtd.service to both virtlogd.socket and virtlogd.service so that virtlogd never disappears before libvirtd has exited. Also add PartOf=libvirtd.service to both virtlogd.socket and virtlogd.service, so that virtlogd can be shut down when not needed. Resolves: https://bugzilla.redhat.com/1372576
This commit is contained in:
parent
a116e58f99
commit
839a060890
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Virtualization daemon
|
Description=Virtualization daemon
|
||||||
|
Requires=virtlogd.socket
|
||||||
Before=libvirt-guests.service
|
Before=libvirt-guests.service
|
||||||
After=network.target
|
After=network.target
|
||||||
After=dbus.service
|
After=dbus.service
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Virtual machine log manager
|
Description=Virtual machine log manager
|
||||||
Requires=virtlogd.socket
|
Requires=virtlogd.socket
|
||||||
|
Before=libvirtd.service
|
||||||
|
PartOf=libvirtd.service
|
||||||
Documentation=man:virtlogd(8)
|
Documentation=man:virtlogd(8)
|
||||||
Documentation=http://libvirt.org
|
Documentation=http://libvirt.org
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Virtual machine log manager socket
|
Description=Virtual machine log manager socket
|
||||||
|
Before=libvirtd.service
|
||||||
|
PartOf=libvirtd.service
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=@localstatedir@/run/libvirt/virtlogd-sock
|
ListenStream=@localstatedir@/run/libvirt/virtlogd-sock
|
||||||
|
Loading…
Reference in New Issue
Block a user