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

Wolfgang Link w.link at proxmox.com
Wed Jul 6 10:21:18 CEST 2016


Sheepdog requires on corosync to start successfully.
In Proxmox VE there is no syslog.target so remove it to avoid warnings.
---
 debian/patches/series                   |  3 ++-
 debian/patches/systemd-adaptation.patch | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/systemd-adaptation.patch

diff --git a/debian/patches/series b/debian/patches/series
index 7ff4ba3..94ac093 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,5 +2,6 @@
 simplify-log-rotation.patch
 set-no-file-limit.patch
 cleanup-systemd-service.patch
-add-service-start-condition.patch
+#add-service-start-condition.patch
 revert_commit
+systemd-adaptation.patch
diff --git a/debian/patches/systemd-adaptation.patch b/debian/patches/systemd-adaptation.patch
new file mode 100644
index 0000000..872be8e
--- /dev/null
+++ b/debian/patches/systemd-adaptation.patch
@@ -0,0 +1,13 @@
+Index: sheepdog.git/script/sheepdog.service.in
+===================================================================
+--- sheepdog.git.orig/script/sheepdog.service.in
++++ sheepdog.git/script/sheepdog.service.in
+@@ -1,7 +1,7 @@
+ [Unit]
+ Description=Sheepdog QEMU/KVM Block Storage
+ After=network.target
+-Wants=syslog.target
++After=corosync.service
+ 
+ [Service]
+ EnvironmentFile=- at SYSCONFDIR@/default/sheepdog
-- 
2.1.4




More information about the pve-devel mailing list