]> git.proxmox.com Git - redhat-cluster-pve.git/blob - debian/patches/fix-lsb-header.diff
stop open-iscsi after cman
[redhat-cluster-pve.git] / debian / patches / fix-lsb-header.diff
1 Index: new/cman/init.d/cman.in
2 ===================================================================
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 @@
6 #
7 ### BEGIN INIT INFO
8 # Provides: cman
9 -# Required-Start: $network $time
10 -# Required-Stop: $network $time
11 -# Default-Start:
12 -# Default-Stop:
13 +# Required-Start: $remote_fs pve-cluster
14 +# Required-Stop: $remote_fs pve-cluster
15 +# Should-Stop: iscsi umountiscsi.sh
16 +# Default-Start: 2 3 4 5
17 +# Default-Stop: 0 1 6
18 # Short-Description: Starts and stops cman
19 # Description: Starts and stops the Cluster Manager set of daemons
20 ### END INIT INFO
21 @@ -22,7 +23,10 @@
22 # save invokation for rollback ops
23 thisinvokation="$0"
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 {
32 @@ -71,8 +75,7 @@
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