]> git.proxmox.com Git - corosync-pve.git/blob - patches/0006-only-start-corosync.service-if-conf-exists.patch
rebase patches
[corosync-pve.git] / patches / 0006-only-start-corosync.service-if-conf-exists.patch
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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
10 ---
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
15
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
17 new file mode 100644
18 index 00000000..18afb84e
19 --- /dev/null
20 +++ b/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
21 @@ -0,0 +1,28 @@
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
26 +MIME-Version: 1.0
27 +Content-Type: text/plain; charset=UTF-8
28 +Content-Transfer-Encoding: 8bit
29 +
30 +Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
31 +---
32 + init/corosync.service.in | 1 +
33 + 1 file changed, 1 insertion(+)
34 +
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
39 +@@ -2,6 +2,7 @@
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
46 +
47 +--
48 +2.19.1
49 +
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