1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Wed, 24 Oct 2018 15:15:33 +0200
4 Subject: [PATCH] only start corosync.service if conf exists
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 ...tart-corosync.service-if-conf-exists.patch | 24 +++++++++++++++++++
12 debian/patches/series | 1 +
13 2 files changed, 25 insertions(+)
14 create mode 100644 debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
16 diff --git a/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch b/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
18 index 00000000..d3bd7ac5
20 +++ b/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
22 +From: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
23 +Date: Mon, 13 Mar 2017 13:27:49 +0100
24 +Subject: only start corosync.service if conf exists
26 +Content-Type: text/plain; charset="utf-8"
27 +Content-Transfer-Encoding: 8bit
29 +Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
31 + init/corosync.service.in | 1 +
32 + 1 file changed, 1 insertion(+)
34 +diff --git a/init/corosync.service.in b/init/corosync.service.in
35 +index 0c74306..adf7080 100644
36 +--- a/init/corosync.service.in
37 ++++ b/init/corosync.service.in
39 + Description=Corosync Cluster Engine
40 + Documentation=man:corosync man:corosync.conf man:corosync_overview
41 + ConditionKernelCommandLine=!nocluster
42 ++ConditionPathExists=/etc/corosync/corosync.conf
43 + Requires=network-online.target
44 + After=network-online.target
46 diff --git a/debian/patches/series b/debian/patches/series
47 index ea6e04ea..803038e4 100644
48 --- a/debian/patches/series
49 +++ b/debian/patches/series
50 @@ -51,3 +51,4 @@ vqsim-Check-result-of-icmap_set_uint32.patch
51 vqsim-Check-length-of-copied-optarg.patch
52 Fix-various-typos-in-ChangeLog.patch
53 Enable-PrivateTmp-in-the-systemd-service-files.patch
54 +pve__only-start-corosync.service-if-conf-exists.patch