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
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 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(-)
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
21 Description=Corosync Cluster Engine
22 ConditionKernelCommandLine=!nocluster
23 +ConditionPathExists=/etc/corosync/corosync.conf
24 Requires=network-online.target
25 After=network-online.target
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