From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] hotplug: create /var/run/xenstored in xencommons Date: Fri, 12 Aug 2011 09:07:40 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # 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 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