Immediately after libvirtd restart I'm unable to start machines, it breaks scripts. ~ # /etc/init.d/libvirtd restart && virsh start test * Stopping libvirtd ... [ ok ] * Starting libvirtd ... [ ok ] error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
ewaitfile in the initscript start_post() usually helps to wait for socket/pidfile availability, it makes initscript return after file is available and has a timeout option. you can define it in confd file as a workaround, but ideally it should be a part if initscript itself of course.
*** This bug has been marked as a duplicate of bug 723494 ***