]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: rename xenstored pid file on Linux
authorChristoph Egger <Christoph.Egger@amd.com>
Wed, 26 Jan 2011 16:11:41 +0000 (16:11 +0000)
committerChristoph Egger <Christoph.Egger@amd.com>
Wed, 26 Jan 2011 16:11:41 +0000 (16:11 +0000)
Changset 22806:eefb8e971be5 broke 'xl'.

After starting the xenstored, xenconsoled, xenbackendd and running xl
create I get this:
  libxl: error: libxl.c:53:libxl_ctx_init Is xenstore daemon running?
  failed to stat /var/run/xenstore.pid: No such file or directory
  cannot init xl context

The reason for the failure is that the NetBSD startup script
creates the file
  /var/run/xenstored.pid
but libxl checks for
  /var/run/xenstore.pid

Attached patch makes this consistent across Linux and NetBSD by
changing the Linux name (to the more-conventional food.pid form).

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/init.d/xencommons
tools/libxl/libxl_internal.h

index 9d3ea3fb29d2d20c2e2fa594f5cbfd339ebe8e6e..26ab3032799c1103b488d2aeb86358bb036d9ca5 100644 (file)
@@ -52,7 +52,7 @@ do_start () {
                test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log"
 
                echo -n Starting xenstored...
-               xenstored --pid-file=/var/run/xenstore.pid $XENSTORED_ARGS
+               xenstored --pid-file=/var/run/xenstored.pid $XENSTORED_ARGS
 
                # Wait for xenstored to actually come up, timing out after 30 seconds
                 while [ $time -lt $timeout ] && ! `xenstore-read -s / >/dev/null 2>&1` ; do
index ab879d02b1a03e68c40cbdbb351a636e56653828..d58b4832bbda21276a3659c813fde5d6bdbdbc6b 100644 (file)
@@ -110,7 +110,7 @@ typedef struct {
 #define AUTO_PHP_SLOT          0x100
 #define SYSFS_PCI_DEV          "/sys/bus/pci/devices"
 #define SYSFS_PCIBACK_DRIVER   "/sys/bus/pci/drivers/pciback"
-#define XENSTORE_PID_FILE      "/var/run/xenstore.pid"
+#define XENSTORE_PID_FILE      "/var/run/xenstored.pid"
 
 #define PROC_PCI_NUM_RESOURCES 7
 #define PCI_BAR_IO             0x01