]> git.proxmox.com Git - redhat-cluster-pve.git/blame - debian/patches/fix-lsb-header.diff
update to STABLE32 3.1.92
[redhat-cluster-pve.git] / debian / patches / fix-lsb-header.diff
CommitLineData
3e8a6763
DM
1Index: new/cman/init.d/cman.in
2===================================================================
f3b46368
DM
3--- new.orig/cman/init.d/cman.in 2012-06-13 15:55:37.000000000 +0200
4+++ new/cman/init.d/cman.in 2012-06-13 15:56:41.000000000 +0200
3e8a6763
DM
5@@ -8,10 +8,10 @@
6 #
7 ### BEGIN INIT INFO
8 # Provides: cman
9-# Required-Start: $network $time
10-# Required-Stop: $network $time
11-# Default-Start:
12-# Default-Stop:
f32778ad
DM
13+# Required-Start: $remote_fs pve-cluster
14+# Required-Stop: $remote_fs pve-cluster
15+# Default-Start: 2 3 4 5
16+# Default-Stop: 0 1 6
3e8a6763
DM
17 # Short-Description: Starts and stops cman
18 # Description: Starts and stops the Cluster Manager set of daemons
19 ### END INIT INFO
f3b46368
DM
20@@ -22,7 +22,10 @@
21 # save invokation for rollback ops
22 thisinvokation="$0"
3e8a6763
DM
23
24+CCFG="/etc/cluster/cluster.conf"
25+
26 test -x @SBINDIR@/cman_tool || exit 0
27+test -f "$CCFG" || exit 0
28
29 chkconfig2()
30 {
f3b46368 31@@ -71,8 +74,7 @@
3e8a6763
DM
32
33 # deb based distros
34 if [ ! -d /etc/sysconfig ]; then
35- [ -f /etc/default/cluster ] && . /etc/default/cluster
36- [ -f /etc/default/cman ] && . /etc/default/cman
37+ [ -f /etc/default/redhat-cluster-pve ] && . /etc/default/redhat-cluster-pve
38 [ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/cman"
39 netmanager=network-manager
40 fi