File xenstore-launch.patch of Package xen.25146

References: bsc#1131811

When the xenstored service is started it exits successfully but systemd seems to
lose track of the service and reports an error causing other xen services to fail.
This patch is a workaround giving systemd time to acknowledge a succesful start
of xenstored. The real fix is believed to be needed in systemd.

Index: xen-4.11.1-testing/tools/hotplug/Linux/launch-xenstore.in
===================================================================
--- xen-4.11.1-testing.orig/tools/hotplug/Linux/launch-xenstore.in
+++ xen-4.11.1-testing/tools/hotplug/Linux/launch-xenstore.in
@@ -61,8 +61,7 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/x
 		exit 1
 	}
 
-	echo -n Starting $XENSTORED...
-	$XENSTORED --pid-file @XEN_RUN_DIR@/xenstored.pid $XENSTORED_ARGS
+	exec $XENSTORED -N --pid-file @XEN_RUN_DIR@/xenstored.pid $XENSTORED_ARGS
 
 	systemd-notify --booted 2>/dev/null || timeout_xenstore $XENSTORED || exit 1
 
@@ -79,6 +78,7 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/x
 	echo -n Starting $XENSTORE_DOMAIN_KERNEL...
 	${LIBEXEC_BIN}/init-xenstore-domain $XENSTORE_DOMAIN_ARGS || exit 1
 	systemd-notify --ready 2>/dev/null
+	sleep 60
 
 	exit 0
 }
openSUSE Build Service is sponsored by