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

[Xen-changelog] [xen-unstable] init script: Enable to run xend stop when dom0 shutdown



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236265566 0
# Node ID 29cc9eef79394173b2974813fd909da29eb7276d
# Parent  2a52806199fc5ae896785d0ec726faa9a7d70fed
init script: Enable to run xend stop when dom0 shutdown
Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
---
 tools/hotplug/Linux/init.d/xend |    2 ++
 1 files changed, 2 insertions(+)

diff -r 2a52806199fc -r 29cc9eef7939 tools/hotplug/Linux/init.d/xend
--- a/tools/hotplug/Linux/init.d/xend   Thu Mar 05 15:02:02 2009 +0000
+++ b/tools/hotplug/Linux/init.d/xend   Thu Mar 05 15:06:06 2009 +0000
@@ -39,11 +39,13 @@ function await_daemons_up
 
 case "$1" in
   start)
+       touch /var/lock/subsys/xend
        xend start
        await_daemons_up
        ;;
   stop)
        xend stop
+       rm -f /var/lock/subsys/xend
        ;;
   status)
        xend status

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