ia64/xen-unstable

changeset 9611:8b39930c70d5

Fix the example xend init.d script so it correctly detects when it is running
in a guest.

Signed-off by: Andrew Peace <andrew@xensource.com>
author apeace@paploo.uk.xensource.com
date Thu Apr 06 14:58:55 2006 +0100 (2006-04-06)
parents 67de34c062b5
children 131051c09008
files tools/examples/init.d/xend
line diff
     1.1 --- a/tools/examples/init.d/xend	Thu Apr 06 12:03:53 2006 +0100
     1.2 +++ b/tools/examples/init.d/xend	Thu Apr 06 14:58:55 2006 +0100
     1.3 @@ -7,7 +7,7 @@
     1.4  # chkconfig: 2345 98 01
     1.5  # description: Starts and stops the Xen control daemon.
     1.6  
     1.7 -if ! [ -e /proc/xen/privcmd ]; then
     1.8 +if ! grep -q "control_d" /proc/xen/capabilities ; then
     1.9  	exit 0
    1.10  fi
    1.11