]> git.proxmox.com Git - corosync-pve.git/blob - patches/0005-only-start-corosync.service-if-conf-exists.patch
buildsys: fix source tarball generation directory level one-off
[corosync-pve.git] / patches / 0005-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 | 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
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..d3bd7ac5
19 --- /dev/null
20 +++ b/debian/patches/pve__only-start-corosync.service-if-conf-exists.patch
21 @@ -0,0 +1,24 @@
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
25 +MIME-Version: 1.0
26 +Content-Type: text/plain; charset="utf-8"
27 +Content-Transfer-Encoding: 8bit
28 +
29 +Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
30 +---
31 + init/corosync.service.in | 1 +
32 + 1 file changed, 1 insertion(+)
33 +
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
38 +@@ -2,6 +2,7 @@
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
45 +
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