File: Enable-redirecting-etc-init.d-script-calls-to-system.patch

package info (click to toggle)
pacemaker 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,576 kB
  • sloc: xml: 160,564; ansic: 143,744; python: 5,670; sh: 2,969; makefile: 2,426
file content (39 lines) | stat: -rw-r--r-- 1,296 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Thu, 17 Dec 2015 10:12:01 +0100
Subject: Enable redirecting /etc/init.d/$script calls to systemd

---
 daemons/execd/pacemaker_remote.in | 4 ++++
 etc/init.d/pacemaker.in           | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/daemons/execd/pacemaker_remote.in b/daemons/execd/pacemaker_remote.in
index 2096c5f..f3ba8e8 100644
--- a/daemons/execd/pacemaker_remote.in
+++ b/daemons/execd/pacemaker_remote.in
@@ -20,6 +20,10 @@
 # Description:		Manage the executor for Pacemaker Remote nodes
 ### END INIT INFO
 
+# The systemd package provides /lib/lsb/init-functions.d/40-systemd
+# to redirect /etc/init.d/$script calls to systemctl. (Thanks: Lintian.)
+. /lib/lsb/init-functions
+
 desc="Pacemaker Remote Executor"
 prog="pacemaker-remoted"
 
diff --git a/etc/init.d/pacemaker.in b/etc/init.d/pacemaker.in
index 6ed78a8..cd440dc 100644
--- a/etc/init.d/pacemaker.in
+++ b/etc/init.d/pacemaker.in
@@ -21,6 +21,10 @@
 # Description:		Starts and stops Pacemaker Cluster Manager.
 ### END INIT INFO
 
+# The systemd package provides /lib/lsb/init-functions.d/40-systemd
+# to redirect /etc/init.d/$script calls to systemctl. (Thanks: Lintian.)
+. /lib/lsb/init-functions
+
 desc="Pacemaker Cluster Manager"
 prog="pacemakerd"