If a guy like me created by accident a file /etc/libvirt/qemu rather than copying xml files from an old system into the directory /etc/libvirt/qemu, then the init.d script fails silently, just the direct command line shows the error: https://forums.gentoo.org/viewtopic-p-7668220.html#7668220 Better the init.d script would print out the error for a thumb sucker like me.
Can you please be more precise about "silently fails"? I.e. what is the expected behavior/what is the actual behavior? For the issue mentioned on the forum, this is handled in bug #532410 - can you post this, please?
(In reply to Matthias Maier from comment #1) > Can you please be more precise about "silently fails"? I.e. what is the > expected behavior/what is the actual behavior? > > For the issue mentioned on the forum, this is handled in bug #532410 - can > you post this, please? t44 /etc/libvirt # ls -ld drwxr-xr-x 1 root root 164 Dec 18 11:48 . t44 /etc/libvirt # /etc/init.d/libvirtd stop * Stopping libvirtd ... [ ok ] t44 /etc/libvirt # mv qemu qemu.ok t44 /etc/libvirt # touch qemu t44 /etc/libvirt # /etc/init.d/libvirtd start * Starting libvirtd ... [ ok ] t44 /etc/libvirt # ps -elfa | grep libvirtd Warning: /boot/System.map-3.17.6-hardened not parseable as a System.map Warning: /usr/src/linux/System.map not parseable as a System.map 0 S root 14948 14835 0 80 0 - 2632 - 14:32 pts/1 00:00:00 grep --colour=auto libvirtd t44 /etc/libvirt # /etc/init.d/libvirtd stop * Stopping libvirtd ... [ ok ] t44 /etc/libvirt # rm qemu t44 /etc/libvirt # mv qemu.ok qemu t44 /etc/libvirt # /etc/init.d/libvirtd start * Starting libvirtd ... [ ok ] t44 /etc/libvirt # ps -elfa | grep libvirtd Warning: /boot/System.map-3.17.6-hardened not parseable as a System.map Warning: /usr/src/linux/System.map not parseable as a System.map 1 S root 15005 1 2 80 0 - 64898 ffffff 14:33 ? 00:00:00 /usr/sbin/libvirtd -d 0 S root 15052 14835 0 80 0 - 2633 - 14:33 pts/1 00:00:00 grep --colour=auto libvirtd
Sneaky, sneaky. This is now fixed in 1.2.11-r2 and 9999. Given the fact that this is not terribly important I'll not backport it to stable. systemd unit file fails with log output, so no action necessary for them. Ps.: Can you mention bug #532410 on the forum thread, please? *libvirt-1.2.11-r2 (18 Dec 2014) 18 Dec 2014; Matthias Maier <tamiko@gentoo.org> +files/libvirtd.init-r14, +libvirt-1.2.11-r2.ebuild, -libvirt-1.2.11-r1.ebuild, files/libvirtd.init-r13, libvirt-9999.ebuild: fail prominently in case of config directories being a regular file, bug #532892