[pve-devel] [PATCH 3/4] Fix systemd start condition

Wolfgang Link w.link at proxmox.com
Tue Jul 5 10:47:37 CEST 2016


Sheepdog requires on corosync to start successfully.
---
 debian/patches/series                   |  3 ++-
 debian/patches/systemd-adaptation.patch | 12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/systemd-adaptation.patch

diff --git a/debian/patches/series b/debian/patches/series
index 4d213d4..4e8ace7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,4 +2,5 @@
 simplify-log-rotation.patch
 set-no-file-limit.patch
 cleanup-systemd-service.patch
-add-service-start-condition.patch
+#add-service-start-condition.patch
+systemd-adaptation.patch
\ No newline at end of file
diff --git a/debian/patches/systemd-adaptation.patch b/debian/patches/systemd-adaptation.patch
new file mode 100644
index 0000000..c5adca5
--- /dev/null
+++ b/debian/patches/systemd-adaptation.patch
@@ -0,0 +1,12 @@
+Index: sheepdog-1.0.0/script/sheepdog.service.in
+===================================================================
+--- sheepdog-1.0.0.orig/script/sheepdog.service.in
++++ sheepdog-1.0.0/script/sheepdog.service.in
+@@ -1,6 +1,7 @@
+ [Unit]
+ Description=Sheepdog QEMU/KVM Block Storage
+ After=network.target
++After=corosync.service
+ Wants=syslog.target
+ ConditionFileIsExecutable=/usr/sbin/sheep
+ 
-- 
2.1.4





More information about the pve-devel mailing list