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