All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hotplug: create /var/run/xenstored in xencommons
@ 2011-08-12  7:07 Olaf Hering
  2011-08-18 12:31 ` Olaf Hering
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2011-08-12  7:07 UTC (permalink / raw)
  To: xen-devel

# 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hotplug: create /var/run/xenstored in xencommons
  2011-08-12  7:07 [PATCH] hotplug: create /var/run/xenstored in xencommons Olaf Hering
@ 2011-08-18 12:31 ` Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2011-08-18 12:31 UTC (permalink / raw)
  To: xen-devel

On Fri, Aug 12, Olaf Hering wrote:

> # 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.

Please ignore this patch, xenstored creates the directory:

tools/xenstore/xenstored_core.c:1811: if (mkdir(xs_daemon_rundir(), 0755)) {


Olaf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-18 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12  7:07 [PATCH] hotplug: create /var/run/xenstored in xencommons Olaf Hering
2011-08-18 12:31 ` Olaf Hering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.