xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH] hotplug: create /var/run/xenstored in xencommons
Date: Fri, 12 Aug 2011 09:07:40 +0200	[thread overview]
Message-ID: <d3c5f8c4c8ede777eb3f.1313132860@probook.site> (raw)

# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# 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@aepfle.de>

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

             reply	other threads:[~2011-08-12  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12  7:07 Olaf Hering [this message]
2011-08-18 12:31 ` [PATCH] hotplug: create /var/run/xenstored in xencommons Olaf Hering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3c5f8c4c8ede777eb3f.1313132860@probook.site \
    --to=olaf@aepfle.de \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).