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

[Xen-devel] [PATCH] Enable to run xend stop when Dom0 shutdown


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "SUZUKI, Kazuhiro" <kaz@xxxxxxxxxxxxxx>
  • Date: Thu, 05 Mar 2009 15:29:22 +0900 (JST)
  • Delivery-date: Wed, 04 Mar 2009 22:29:50 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

This patch enables to run "xend stop" when the Dom0 is going to
shutdown.

Thanks,
KAZ

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
diff -r 7f573cb76db4 tools/hotplug/Linux/init.d/xend
--- a/tools/hotplug/Linux/init.d/xend   Tue Mar 03 13:22:28 2009 +0000
+++ b/tools/hotplug/Linux/init.d/xend   Wed Mar 04 17:43:02 2009 +0900
@@ -39,11 +39,13 @@
 
 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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