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 [3/4] Debian-2.0.5-1 non-xen-init-exit.patch

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Patch [3/4] Debian-2.0.5-1 non-xen-init-exit.patch
From: <doogie@xxxxxxxxxxxxx>
Date: Fri, 11 Mar 2005 17:28:15 -0600
Delivery-date: Fri, 11 Mar 2005 23:29:30 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Name: non-xen-init-exit.patch
Description: exit if not running on a xen dom0 kernel.
 If /proc/xen/privcmd doesn't exist, then exit successfully.  This allows
 for dual-boot setups, and installing xen before rebooting into a real
 xen kernel.
DiffStat:
 tools/examples/init.d/xend       |    4 ++++
 tools/examples/init.d/xendomains |    4 ++++
 2 files changed, 8 insertions(+)

--- xen-2.0.5.orig/tools/examples/init.d/xend
+++ xen-2.0.5/tools/examples/init.d/xend
@@ -7,6 +7,10 @@
 # chkconfig: 2345 98 01
 # description: Starts and stops the Xen control daemon.
 
+if ! [ -e /proc/xen/privcmd ]; then
+       exit 0
+fi
+
 # Wait for Xend / Xfrd to be up
 function await_daemons_up
 {
--- xen-2.0.5.orig/tools/examples/init.d/xendomains
+++ xen-2.0.5/tools/examples/init.d/xendomains
@@ -15,6 +15,10 @@
 # <http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/>
 #
 
+if ! [ -e /proc/xen/privcmd ]; then
+       exit 0
+fi
+
 RETVAL=0
 
 INITD=/etc/init.d




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Patch [3/4] Debian-2.0.5-1 non-xen-init-exit.patch, doogie <=