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

[Xen-changelog] Fix the example xend init.d script so it correctly detects when it is running



# HG changeset patch
# User apeace@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 9d4528f9b99011350a8308fce988db9f2f2d13bc
# Parent  d7eec5562bb650d81773bf4a4a61eb46bb9d9b85
Fix the example xend init.d script so it correctly detects when it is running
in a guest.

Signed-off by: Andrew Peace <andrew@xxxxxxxxxxxxx>

diff -r d7eec5562bb6 -r 9d4528f9b990 tools/examples/init.d/xend
--- a/tools/examples/init.d/xend        Thu Apr  6 10:14:06 2006
+++ b/tools/examples/init.d/xend        Thu Apr  6 13:59:23 2006
@@ -7,7 +7,7 @@
 # chkconfig: 2345 98 01
 # description: Starts and stops the Xen control daemon.
 
-if ! [ -e /proc/xen/privcmd ]; then
+if ! grep -q "control_d" /proc/xen/capabilities ; then
        exit 0
 fi
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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