• M
    virNetServerRun: Notify systemd that we're accepting clients · 68954fb2
    Michal Privoznik 提交于
    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: NMichal Privoznik <mprivozn@redhat.com>
    68954fb2
virsystemd.c 9.2 KB