[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] fix chkconfig commands in xapi spec file



# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1276890866 -3600
# Node ID 8ccd23b730976e8fc3db9def2e9ffde95e4b8486
# Parent  1c21253d56c8b979e5e9e4ef739eca21b51b3a77
In the xapi RPM post-install actions, use 'chkconfig --add' rather than 
'chkconfig ... on' otherwise services are shutdown in the wrong order, causing 
a slave host to freeze during reboot.

(Thanks to James Bulpin for figuring out what was going on :-)

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 1c21253d56c8 -r 8ccd23b73097 xapi.spec
--- a/xapi.spec Fri Jun 18 18:40:07 2010 +0100
+++ b/xapi.spec Fri Jun 18 20:54:26 2010 +0100
@@ -100,12 +100,12 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post core
-[ ! -x /sbin/chkconfig ] || chkconfig xapi on
-[ ! -x /sbin/chkconfig ] || chkconfig management-interface on
-[ ! -x /sbin/chkconfig ] || chkconfig xenservices on
-[ ! -x /sbin/chkconfig ] || chkconfig xapi-domains on
-[ ! -x /sbin/chkconfig ] || chkconfig perfmon on
-[ ! -x /sbin/chkconfig ] || chkconfig v6d on
+[ ! -x /sbin/chkconfig ] || chkconfig --add xapi
+[ ! -x /sbin/chkconfig ] || chkconfig --add management-interface
+[ ! -x /sbin/chkconfig ] || chkconfig --add xenservices
+[ ! -x /sbin/chkconfig ] || chkconfig --add xapi-domains
+[ ! -x /sbin/chkconfig ] || chkconfig --add perfmon
+[ ! -x /sbin/chkconfig ] || chkconfig --add v6d
 
 %post squeezed
 [ ! -x /sbin/chkconfig ] || chkconfig squeezed on
 xapi.spec |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.