From 63c0d5bf6a0281133b895efaeb5fba5be7afd1bc Mon Sep 17 00:00:00 2001 Message-Id: <63c0d5bf6a0281133b895efaeb5fba5be7afd1bc.1285228537.git.jdenemar@redhat.com> From: Jiri Denemark <jdenemar@redhat.com> Date: Wed, 22 Sep 2010 15:46:04 +0200 Subject: [PATCH] libvirt-guests: start late and stop early Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=636447 When running on Xen hypervisor, libvirt-guests reports failed attempt to connect to the hypervisor instead of a notice that it is disabled on Xen. This is because libvirt-guests init script gets stopped after xend has already been stopped. The order has to change so that xend is still running when libvirt-guests is stopped. That is, libvirt-guests init script should be started as late as possible during host startup and stopped as early as possible during host shutdown to make sure required services are already/still up and running at the time libvirt-guests runs. xend is started/stopped as 98/01 so changing libvirt-guests to be started/stopped as 99/01 fixes the dependency. (cherry picked from commit c5acd3769fcecb0a1331e6437947ea9a677c9e2a) --- daemon/libvirt-guests.init.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/daemon/libvirt-guests.init.in b/daemon/libvirt-guests.init.in index 2d355ec..b2990ce 100644 --- a/daemon/libvirt-guests.init.in +++ b/daemon/libvirt-guests.init.in @@ -17,7 +17,7 @@ # # libvirt-guests: suspend/resume libvirt guests on shutdown/boot # -# chkconfig: 345 98 02 +# chkconfig: 345 99 01 # description: This is a script for suspending active libvirt guests \ # on shutdown and resuming them on next boot \ # See http://libvirt.org -- 1.7.3