[Pkg-xen-changes] r120 - trunk/xen-3.0/debian/patches

Julien Danjou acid at costa.debian.org
Mon Mar 20 14:21:49 UTC 2006


Author: acid
Date: 2006-03-20 14:21:48 +0000 (Mon, 20 Mar 2006)
New Revision: 120

Added:
   trunk/xen-3.0/debian/patches/xenstored_rundir.dpatch
Log:
patch xend init.d script to create xenstored run directory on startup


Added: trunk/xen-3.0/debian/patches/xenstored_rundir.dpatch
===================================================================
--- trunk/xen-3.0/debian/patches/xenstored_rundir.dpatch	2006-03-17 13:42:09 UTC (rev 119)
+++ trunk/xen-3.0/debian/patches/xenstored_rundir.dpatch	2006-03-20 14:21:48 UTC (rev 120)
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## xenstored_rundir.dpatch by Julien Danjou <acid at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Create xenstored run directory. 
+
+ at DPATCH@
+diff -ru xen-3.0.1.orig/tools/examples/init.d/xend xen-3.0.1/tools/examples/init.d/xend
+--- xen-3.0.1.orig/tools/examples/init.d/xend	2006-01-31 17:09:20.000000000 +0100
++++ xen-3.0.1/tools/examples/init.d/xend	2006-03-20 15:14:48.000000000 +0100
+@@ -7,6 +7,8 @@
+ # chkconfig: 2345 98 01
+ # description: Starts and stops the Xen control daemon.
+ 
++XENSTORED_RUN_DIR="/var/run/xenstored"
++
+ if ! [ -e /proc/xen/privcmd ]; then
+ 	exit 0
+ fi
+@@ -27,6 +29,7 @@
+ 
+ case "$1" in
+   start)
++	[ -d "$XENSTORED_RUN_DIR" ] || mkdir -p "$XENSTORED_RUN_DIR"
+ 	xend start
+ 	await_daemons_up
+ 	;;




More information about the Pkg-xen-changes mailing list