WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] fix chkconfig commands in xapi spec file
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 18 Jun 2010 20:54:44 +0100
Delivery-date: Fri, 18 Jun 2010 12:58:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
# 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] fix chkconfig commands in xapi spec file, David Scott <=