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 | 28 +++++++++++++++++++
12 debian/patches/series | 1 +
13 2 files changed, 29 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..18afb84e
20 +++ b/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
22 +From 306692e2627b0fe072bfae21ddb5d501189c57c5 Mon Sep 17 00:00:00 2001
23 +From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
24 +Date: Mon, 13 Mar 2017 13:27:49 +0100
25 +Subject: [PATCH] only start corosync.service if conf exists
27 +Content-Type: text/plain; charset=UTF-8
28 +Content-Transfer-Encoding: 8bit
30 +Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
32 + init/corosync.service.in | 1 +
33 + 1 file changed, 1 insertion(+)
35 +diff --git a/init/corosync.service.in b/init/corosync.service.in
36 +index 7733a98c..1b65c94b 100644
37 +--- a/init/corosync.service.in
38 ++++ b/init/corosync.service.in
40 + Description=Corosync Cluster Engine
41 + Documentation=man:corosync man:corosync.conf man:corosync_overview
42 + ConditionKernelCommandLine=!nocluster
43 ++ConditionPathExists=/etc/corosync/corosync.conf
44 + Requires=network-online.target
45 + After=network-online.target
50 diff --git a/debian/patches/series b/debian/patches/series
51 index 41866b14..fcba2944 100644
52 --- a/debian/patches/series
53 +++ b/debian/patches/series
54 @@ -5,3 +5,4 @@ corosync.conf.5-typography-fixes.patch
55 AC_PROG_SED-is-already-present.patch
56 Use-the-SED-variable-provided-by-configure.patch
57 Use-the-AWK-variable-provided-by-configure.patch
58 +pve__only-start-corosync.service-if-conf-exists.patch