]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetServerRun: Notify systemd that we're accepting clients
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Feb 2014 12:06:42 +0000 (13:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Feb 2014 09:54:48 +0000 (10:54 +0100)
commit68954fb25c4a75c5c2c213f57927eb188cca2239
tree52ac7e9f43116802fb9b46da0aa8d5a7bff8ae89
parent4e7fc8305a53676ba2362bfaa8ca05c4851b7e12
virNetServerRun: Notify systemd that we're accepting clients

Systemd does not forget about the cases, where client service needs to
wait for daemon service to initialize and start accepting new clients.
Setting a dependency in client is not enough as systemd doesn't know
when the daemon has initialized itself and started accepting new
clients. However, it offers a mechanism to solve this. The daemon needs
to call a special systemd function by which the daemon tells "I'm ready
to accept new clients". This is exactly what we need with
libvirtd-guests (client) and libvirtd (daemon). So now, with this
change, libvirt-guests.service is invoked not any sooner than
libvirtd.service calls the systemd notify function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
configure.ac
daemon/libvirtd.service.in
m4/virt-systemd-daemon.m4 [new file with mode: 0644]
src/Makefile.am
src/libvirt_private.syms
src/rpc/virnetserver.c
src/util/virsystemd.c
src/util/virsystemd.h