WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Enable to run xend stop when Dom0 shutdown
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Enable to run xend stop when Dom0 shutdown, SUZUKI, Kazuhiro <=