]> git.proxmox.com Git - corosync-pve.git/blob - patches/0007-only-start-corosync.service-if-conf-exists.patch
62e0271a6264c9f9f8adf79bdf14ea0a20e5da91
[corosync-pve.git] / patches / 0007-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: Mon, 13 Mar 2017 13:27:49 +0100
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 init/corosync.service.in | 1 +
12 .../patches/Add-Documentation-URIs-to-the-systemd-service-files.patch | 2 +-
13 2 files changed, 2 insertions(+), 1 deletion(-)
14
15 diff --git a/init/corosync.service.in b/init/corosync.service.in
16 index d71a8572..3b8316a7 100644
17 --- a/init/corosync.service.in
18 +++ b/init/corosync.service.in
19 @@ -1,6 +1,7 @@
20 [Unit]
21 Description=Corosync Cluster Engine
22 ConditionKernelCommandLine=!nocluster
23 +ConditionPathExists=/etc/corosync/corosync.conf
24 Requires=network-online.target
25 After=network-online.target
26
27 diff --git a/debian/patches/Add-Documentation-URIs-to-the-systemd-service-files.patch b/debian/patches/Add-Documentation-URIs-to-the-systemd-service-files.patch
28 index d77faae9..e9f25e45 100644
29 --- a/debian/patches/Add-Documentation-URIs-to-the-systemd-service-files.patch
30 +++ b/debian/patches/Add-Documentation-URIs-to-the-systemd-service-files.patch
31 @@ -52,5 +52,5 @@ index d71a857..12193b1 100644
32 Description=Corosync Cluster Engine
33 +Documentation=man:corosync man:corosync.conf man:corosync_overview
34 ConditionKernelCommandLine=!nocluster
35 + ConditionPathExists=/etc/corosync/corosync.conf
36 Requires=network-online.target
37 - After=network-online.target
38 --
39 2.14.2
40