]>
Commit | Line | Data |
---|---|---|
3e8a6763 DM |
1 | Index: new/cman/init.d/cman.in |
2 | =================================================================== | |
f32778ad DM |
3 | --- new.orig/cman/init.d/cman.in 2011-08-30 11:58:11.000000000 +0200 |
4 | +++ new/cman/init.d/cman.in 2011-08-30 11:58:46.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 | |
20 | @@ -19,7 +19,10 @@ | |
21 | # set secure PATH | |
22 | PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@" | |
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 | { | |
31 | @@ -68,8 +71,7 @@ | |
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 |