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] hotplug: create /var/run/xenstored in xencommons

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] hotplug: create /var/run/xenstored in xencommons
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Fri, 12 Aug 2011 09:07:40 +0200
Delivery-date: Fri, 12 Aug 2011 00:10:02 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1313132908; l=991; s=domk; d=aepfle.de; h=To:From:Date:Subject:Content-Transfer-Encoding:MIME-Version: Content-Type:X-RZG-CLASS-ID:X-RZG-AUTH; bh=UC65eQXkFiciPeNIGiXSPR9o9jE=; b=lhHqnNmQIQ4olj2Un1MgtXSs5Ut9PkQa7o8CJG8Tt8u19UFkrwdC3t2hpCdIVm0JZqz f4FANRRp95eiOC5VUOCBDlIBJPDDEaQtTIGcdNCMSdZ6Nr4cvwa/wEwlg0K5SUSVqiTvx oyKjOvjg1osIyMl89/xrDW+4Yz7N510qoY8=
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
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1313132827 -7200
# Node ID d3c5f8c4c8ede777eb3f686306ec36ca677c2422
# Parent  1f08b380d4386cdd6714786a9163e5f51aecab5d
hotplug: create /var/run/xenstored in xencommons

In recent Linux distributions all volatile runtime data was moved to a
tmpfs mounted on /run. /var/run is a symlink to that directory.  Create
/var/run/xenstored unconditionally on startup, use -p to ignore errors.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 1f08b380d438 -r d3c5f8c4c8ed tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons
+++ b/tools/hotplug/Linux/init.d/xencommons
@@ -52,6 +52,7 @@ do_start () {
                test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T 
/var/log/xen/xenstored-trace.log"
 
                echo -n Starting xenstored...
+               mkdir -p /var/run/xenstored
                xenstored --pid-file=/var/run/xenstored.pid $XENSTORED_ARGS
 
                # Wait for xenstored to actually come up, timing out after 30 
seconds

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>