1 Index: new/rgmanager/init.d/rgmanager.in
2 ===================================================================
3 --- new.orig/rgmanager/init.d/rgmanager.in 2011-07-19 12:52:29.000000000 +0200
4 +++ new/rgmanager/init.d/rgmanager.in 2011-08-19 10:26:15.000000000 +0200
13 # Short-Description: Starts and stops Red Hat Service (resource group) Manager
14 # Description: Starts and stops Red Hat Service (resource group) Manager
18 PATH="/sbin:/bin:/usr/sbin:/usr/bin:@SBINDIR@"
20 +CCFG="/etc/cluster/cluster.conf"
22 +test -f "$CCFG" || exit 0
30 pid=$(pidof $1 2>/dev/null)
33 if [ $rtrn -ne 0 ]; then
39 if [ -d /etc/default ]; then
40 - [ -f /etc/default/cluster ] && . /etc/default/cluster
41 - [ -f /etc/default/rgmanager ] && . /etc/default/rgmanager
42 + [ -f /etc/default/redhat-cluster-pve ] && . /etc/default/redhat-cluster-pve
43 [ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/rgmanager"
52 + ccs_tool query /cluster/rm >/dev/null 2>&1
57 if [ "$EUID" != "0" ]; then
63 + if ! rgmanager_enabled; then
67 echo -n "Starting $ID: "
69 # most recent distributions use tmpfs for /var/run
71 if status $RGMGRD > /dev/null 2>&1; then
74 - if $RGMGRD $RGMGR_OPTS; then
75 + # do not trust return code
76 + $RGMGRD $RGMGR_OPTS;
77 + if status $RGMGRD > /dev/null 2>&1; then
82 echo -n "Stopping $ID: "
84 if status $RGMGRD > /dev/null 2>&1; then
85 - if stop_cluster; then
90 + if status $RGMGRD > /dev/null 2>&1; then