[pve-devel] [PATCH corosync-pve] start corosync.service after syslog

Alexandre Derumier aderumier at odiso.com
Tue Sep 15 10:36:42 CEST 2020


Currently we don't have any log at shutdown

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 ...-start-corosync.service-after-syslog.patch | 25 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 debian/patches/0003-start-corosync.service-after-syslog.patch

diff --git a/debian/patches/0003-start-corosync.service-after-syslog.patch b/debian/patches/0003-start-corosync.service-after-syslog.patch
new file mode 100644
index 0000000..eb44346
--- /dev/null
+++ b/debian/patches/0003-start-corosync.service-after-syslog.patch
@@ -0,0 +1,25 @@
+From 673fbb667b5ab85089b6a977322109ef13a8b43c Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier at odiso.com>
+Date: Tue, 15 Sep 2020 10:31:33 +0200
+Subject: [PATCH] start corosync.service after syslog
+
+Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
+---
+ init/corosync.service.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/init/corosync.service.in b/init/corosync.service.in
+index adf7080..f0aefbe 100644
+--- a/init/corosync.service.in
++++ b/init/corosync.service.in
+@@ -5,6 +5,7 @@ ConditionKernelCommandLine=!nocluster
+ ConditionPathExists=/etc/corosync/corosync.conf
+ Requires=network-online.target
+ After=network-online.target
++After=syslog.service
+ 
+ [Service]
+ EnvironmentFile=- at INITCONFIGDIR@/corosync
+-- 
+2.20.1
+
diff --git a/debian/patches/series b/debian/patches/series
index fd3a2f0..1b4a4c9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Enable-PrivateTmp-in-the-systemd-service-files.patch
 0002-only-start-corosync.service-if-conf-exists.patch
+0003-start-corosync.service-after-syslog.patch
-- 
2.20.1





More information about the pve-devel mailing list