On Tue, Dec 03, 2019 at 09:56:15AM +0100, Christian Ehrhardt wrote: > The most common operation of libvirt-guests is to manage the local > libvirtd. But users might have disabled that and while we are > After=libvirtd for ordering we are not Requiring it.. > OTOH adding that or any harder dependency might affect our ordering. > > But if people have disabled libvirt they will do a full retry loop > until timeout. Lets check if the local service is active at all and skip > fast if it is not. I don't really get why we have that retry logic at all. If libvirtd is running, or systemd autostart is present then virsh connect should work immediately. If it autostarts and no guests are present, then ther's no work todo so it'll be fast enough. If it fails something either it is stopped and autostart is disabled, or it is completely broken. Either way, a retry loop looks pointless to me. IOW, instead of adding a check on libvirtd, just kill the retry loop. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list