|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/Makefile xen-4.5.0/tools/hotplug/Linux/systemd/Makefile
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/Makefile 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/Makefile 2015-01-25 22:23:26.000000000 +0000
|
|
|
a36066c |
@@ -14,7 +14,8 @@
|
|
|
a36066c |
XEN_SYSTEMD_SERVICE += xen-qemu-dom0-disk-backend.service
|
|
|
a36066c |
XEN_SYSTEMD_SERVICE += xendomains.service
|
|
|
a36066c |
XEN_SYSTEMD_SERVICE += xen-watchdog.service
|
|
|
a36066c |
-XEN_SYSTEMD_SERVICE += xen-init-dom0.service
|
|
|
a36066c |
+#XEN_SYSTEMD_SERVICE += xen-init-dom0.service
|
|
|
a36066c |
+XEN_SYSTEMD_SERVICE += oxenstored.service
|
|
|
a36066c |
|
|
|
a36066c |
ALL_XEN_SYSTEMD = $(XEN_SYSTEMD_MODULES) \
|
|
|
a36066c |
$(XEN_SYSTEMD_MOUNT) \
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/oxenstored.service.in xen-4.5.0/tools/hotplug/Linux/systemd/oxenstored.service.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/oxenstored.service.in 1970-01-01 01:00:00.000000000 +0100
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/oxenstored.service.in 2015-01-25 22:37:15.000000000 +0000
|
|
|
185876b |
@@ -0,0 +1,26 @@
|
|
|
a36066c |
+[Unit]
|
|
|
a36066c |
+Description=The ocaml version of Xen xenstore
|
|
|
a36066c |
+Requires=xenstored_ro.socket xenstored.socket proc-xen.mount var-lib-xenstored.mount
|
|
|
a36066c |
+After=proc-xen.mount var-lib-xenstored.mount
|
|
|
a36066c |
+Before=libvirtd.service libvirt-guests.service
|
|
|
a36066c |
+Conflicts=xenstored.service
|
|
|
a36066c |
+RefuseManualStop=true
|
|
|
a36066c |
+ConditionPathExists=/proc/xen/capabilities
|
|
|
a36066c |
+
|
|
|
a36066c |
+[Service]
|
|
|
a36066c |
+Type=notify
|
|
|
185876b |
+KillMode=none
|
|
|
a36066c |
+Sockets=xenstored.socket xenstored_ro.socket
|
|
|
a36066c |
+Environment=XENSTORED_ARGS=
|
|
|
a36066c |
+EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
|
|
|
a36066c |
+ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
|
|
|
a36066c |
+ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb*
|
|
|
a36066c |
+ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
|
|
|
a36066c |
+ExecStart=@sbindir@/oxenstored --no-fork $XENSTORED_ARGS
|
|
|
a36066c |
+ExecStartPost=-@LIBEXEC_BIN@/xen-init-dom0
|
|
|
a36066c |
+
|
|
|
a36066c |
+[Install]
|
|
|
a36066c |
+WantedBy=multi-user.target
|
|
|
a36066c |
+Also=xenstored_ro.socket xenstored.socket
|
|
|
a36066c |
+Also=proc-xen.mount
|
|
|
a36066c |
+Also=var-lib-xenstored.mount
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/var-lib-xenstored.mount.in xen-4.5.0/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/var-lib-xenstored.mount.in 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in 2015-01-25 22:28:59.000000000 +0000
|
|
|
a36066c |
@@ -9,4 +9,4 @@
|
|
|
a36066c |
What=xenstore
|
|
|
a36066c |
Where=@XEN_LIB_STORED@
|
|
|
a36066c |
Type=tmpfs
|
|
|
a36066c |
-Options=mode=755
|
|
|
a36066c |
+Options=mode=755,context="system_u:object_r:xenstored_var_lib_t:s0"
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/xenconsoled.service.in xen-4.5.0/tools/hotplug/Linux/systemd/xenconsoled.service.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/xenconsoled.service.in 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/xenconsoled.service.in 2015-01-25 22:30:26.000000000 +0000
|
|
|
a36066c |
@@ -1,7 +1,7 @@
|
|
|
a36066c |
[Unit]
|
|
|
a36066c |
Description=Xenconsoled - handles logging from guest consoles and hypervisor
|
|
|
a36066c |
-Requires=proc-xen.mount xenstored.service
|
|
|
a36066c |
-After=proc-xen.mount xenstored.service
|
|
|
a36066c |
+Requires=proc-xen.mount
|
|
|
a36066c |
+After=proc-xen.mount xenstored.service oxenstored.service
|
|
|
a36066c |
ConditionPathExists=/proc/xen/capabilities
|
|
|
a36066c |
|
|
|
a36066c |
[Service]
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/xendomains.service.in xen-4.5.0/tools/hotplug/Linux/systemd/xendomains.service.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/xendomains.service.in 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/xendomains.service.in 2015-01-25 22:31:55.000000000 +0000
|
|
|
a36066c |
@@ -1,7 +1,7 @@
|
|
|
a36066c |
[Unit]
|
|
|
a36066c |
Description=Xendomains - start and stop guests on boot and shutdown
|
|
|
a36066c |
-Requires=proc-xen.mount xenstored.service
|
|
|
a36066c |
-After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service
|
|
|
a36066c |
+Requires=proc-xen.mount
|
|
|
a36066c |
+After=proc-xen.mount xenstored.service xenconsoled.service oxenstored.service
|
|
|
a36066c |
After=network-online.target
|
|
|
a36066c |
After=remote-fs.target
|
|
|
a36066c |
ConditionPathExists=/proc/xen/capabilities
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/xen-qemu-dom0-disk-backend.service.in xen-4.5.0/tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/xen-qemu-dom0-disk-backend.service.in 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in 2015-01-25 22:34:36.000000000 +0000
|
|
|
a36066c |
@@ -1,7 +1,7 @@
|
|
|
a36066c |
[Unit]
|
|
|
a36066c |
Description=qemu for xen dom0 disk backend
|
|
|
a36066c |
-Requires=proc-xen.mount xenstored.service
|
|
|
a36066c |
-After=proc-xen.mount xenstored.service xenconsoled.service
|
|
|
a36066c |
+Requires=proc-xen.mount
|
|
|
a36066c |
+After=proc-xen.mount xenstored.service xenconsoled.service oxenstored.service
|
|
|
a36066c |
Before=xendomains.service libvirtd.service libvirt-guests.service
|
|
|
a36066c |
RefuseManualStop=true
|
|
|
a36066c |
ConditionPathExists=/proc/xen/capabilities
|
|
|
a36066c |
diff -uN xen-4.5.0/tools/hotplug/Linux/systemd.orig/xenstored.service.in xen-4.5.0/tools/hotplug/Linux/systemd/xenstored.service.in
|
|
|
a36066c |
--- xen-4.5.0/tools/hotplug/Linux/systemd.orig/xenstored.service.in 2015-01-12 16:53:24.000000000 +0000
|
|
|
a36066c |
+++ xen-4.5.0/tools/hotplug/Linux/systemd/xenstored.service.in 2015-01-25 22:37:27.000000000 +0000
|
|
|
a36066c |
@@ -8,13 +8,14 @@
|
|
|
a36066c |
[Service]
|
|
|
a36066c |
Type=notify
|
|
|
185876b |
KillMode=none
|
|
|
a36066c |
+Sockets=xenstored.socket xenstored_ro.socket
|
|
|
a36066c |
Environment=XENSTORED_ARGS=
|
|
|
a36066c |
-Environment=XENSTORED=@XENSTORED@
|
|
|
a36066c |
EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
|
|
|
a36066c |
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
|
|
|
a36066c |
ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb*
|
|
|
a36066c |
ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
|
|
|
a36066c |
-ExecStart=/bin/sh -c "exec $XENSTORED --no-fork $XENSTORED_ARGS"
|
|
|
a36066c |
+ExecStart=@sbindir@/xenstored --no-fork $XENSTORED_ARGS
|
|
|
a36066c |
+ExecStartPost=-@LIBEXEC_BIN@/xen-init-dom0
|
|
|
a36066c |
|
|
|
a36066c |
[Install]
|
|
|
a36066c |
WantedBy=multi-user.target
|
|
|
b665e43 |
--- xen-4.6.0/tools/configure.ac.orig 2015-02-15 16:47:22.000000000 +0000
|
|
|
b665e43 |
+++ xen-4.6.0/tools/configure.ac 2015-03-01 16:18:30.493647587 +0000
|
|
|
b665e43 |
@@ -382,9 +382,9 @@
|
|
|
a36066c |
|
|
|
b665e43 |
AS_IF([test "x$systemd" = "xy"], [
|
|
|
b665e43 |
AC_CONFIG_FILES([
|
|
|
b665e43 |
+ hotplug/Linux/systemd/oxenstored.service
|
|
|
b665e43 |
hotplug/Linux/systemd/proc-xen.mount
|
|
|
b665e43 |
hotplug/Linux/systemd/var-lib-xenstored.mount
|
|
|
b665e43 |
- hotplug/Linux/systemd/xen-init-dom0.service
|
|
|
b665e43 |
hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service
|
|
|
b665e43 |
hotplug/Linux/systemd/xen-watchdog.service
|
|
|
b665e43 |
hotplug/Linux/systemd/xenconsoled.service
|
|
|
b665e43 |
--- xen-4.6.0/tools/configure.orig 2015-02-15 16:47:22.000000000 +0000
|
|
|
b665e43 |
+++ xen-4.6.0/tools/configure 2015-03-01 16:20:10.648285840 +0000
|
|
|
b665e43 |
@@ -8995,7 +8995,7 @@
|
|
|
a36066c |
|
|
|
b665e43 |
if test "x$systemd" = "xy"; then :
|
|
|
a36066c |
|
|
|
b665e43 |
- ac_config_files="$ac_config_files hotplug/Linux/systemd/proc-xen.mount hotplug/Linux/systemd/var-lib-xenstored.mount hotplug/Linux/systemd/xen-init-dom0.service hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service hotplug/Linux/systemd/xen-watchdog.service hotplug/Linux/systemd/xenconsoled.service hotplug/Linux/systemd/xendomains.service hotplug/Linux/systemd/xenstored.service hotplug/Linux/systemd/xenstored.socket hotplug/Linux/systemd/xenstored_ro.socket"
|
|
|
b665e43 |
+ ac_config_files="$ac_config_files hotplug/Linux/systemd/oxenstored.service hotplug/Linux/systemd/proc-xen.mount hotplug/Linux/systemd/var-lib-xenstored.mount hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service hotplug/Linux/systemd/xen-watchdog.service hotplug/Linux/systemd/xenconsoled.service hotplug/Linux/systemd/xendomains.service hotplug/Linux/systemd/xenstored.service hotplug/Linux/systemd/xenstored.socket hotplug/Linux/systemd/xenstored_ro.socket"
|
|
|
a36066c |
|
|
|
a36066c |
|
|
|
b665e43 |
fi
|