File xenstore-launch.patch of Package xen.26345

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.10.3-testing/tools/hotplug/Linux/launch-xenstore.in
===================================================================
--- xen-4.10.3-testing.orig/tools/hotplug/Linux/launch-xenstore.in
+++ xen-4.10.3-testing/tools/hotplug/Linux/launch-xenstore.in
@@ -80,6 +80,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
+	systemd-notify --booted 2>/dev/null && sleep 9
 
 	exit 0
 }
openSUSE Build Service is sponsored by