[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 8b39930c70d5cf513c6d87163f0dfbc6b6e068c7
# Parent  67de34c062b5897d1e82995b171be081f976558e
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 67de34c062b5 -r 8b39930c70d5 tools/examples/init.d/xend
--- a/tools/examples/init.d/xend        Thu Apr  6 11:03:53 2006
+++ b/tools/examples/init.d/xend        Thu Apr  6 13:58:55 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®.