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

[Xen-changelog] [xen-unstable] tools: init.d/xencommons: Make init script more verbose



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1277820387 -3600
# Node ID 0429585d7e39220f94d677aef8cd210b5fce7e42
# Parent  a60c604b5829db6285ff89d8163478330ac12ee2
tools: init.d/xencommons: Make init script more verbose

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
 tools/hotplug/Linux/init.d/xencommons |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r a60c604b5829 -r 0429585d7e39 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons     Tue Jun 29 14:52:51 2010 +0100
+++ b/tools/hotplug/Linux/init.d/xencommons     Tue Jun 29 15:06:27 2010 +0100
@@ -42,21 +42,28 @@ do_start () {
                test -z "$XENSTORED_ROOTDIR" || 
XENSTORED_ROOTDIR="/var/lib/xenstored"
                rm -f "$XENSTORED_ROOTDIR"/tdb* &>/dev/null
                test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T 
/var/log/xen/xenstored-trace.log"
+
+               echo Starting xenstored...
                xenstored --pid-file=/var/run/xenstore.pid $XENSTORED_ARGS
+               echo Setting domain 0 name...
                xenstore-write "/local/domain/0/name" "Domain-0"
        fi
 
+       echo Starting xenconsoled...
        test -z "$XENCONSOLED_TRACE" || XENCONSOLED_ARGS=" -T 
/var/log/xen/xenstored-trace.log"
        xenconsoled --pid-file=$XENCONSOLED_PIDFILE $XENCONSOLED_ARGS
        test -z "$XENBACKENDD_DEBUG" || XENBACKENDD_ARGS="-d"
        test "`uname`" != "NetBSD" || xenbackendd $XENBACKENDD_ARGS
 }
 do_stop () {
+        echo Stopping xenconsoled
        if read 2>/dev/null <$XENCONSOLED_PIDFILE pid; then
                kill $pid
                while kill -9 $pid >/dev/null 2>&1; do sleep 0.1; done
                rm -f $XENCONSOLED_PIDFILE
        fi
+
+       echo WARNING: Not stopping xenstored, as it cannot be restarted.
 }
 
 case "$1" in

_______________________________________________
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®.