root@node-5:~# grep -A 12 'pre-stop script' /etc/init/libvirtd.conf
pre-stop script
# shutdown guests if system is going to reboot or shutdown
if [ -z "$RUNLEVEL" ]; then
exit 0
fi
if [ "$RUNLEVEL" -ne 0 ] && [ "$RUNLEVEL" -ne 1 ] && [ "$RUNLEVEL" -ne 6 ]; then
exit 0
fi
/usr/lib/libvirt/libvirt-guests.sh stop
end script
Verified on MOS 9.0 (build 445) - fixed!
Proof:
root@node-5:~# grep -A 12 'pre-stop script' /etc/init/ libvirtd. conf
pre-stop script
# shutdown guests if system is going to reboot or shutdown
if [ -z "$RUNLEVEL" ]; then
exit 0
fi
if [ "$RUNLEVEL" -ne 0 ] && [ "$RUNLEVEL" -ne 1 ] && [ "$RUNLEVEL" -ne 6 ]; then
exit 0
fi
/usr/ lib/libvirt/ libvirt- guests. sh stop
end script