]> git.proxmox.com Git - redhat-cluster-pve.git/blame - debian/patches/fix-cman-init.diff
update to upstream release 3.1.6
[redhat-cluster-pve.git] / debian / patches / fix-cman-init.diff
CommitLineData
3e8a6763
DM
1
2 * check if cman_tool is installed
3
4 * do not overwrite global return status 'rtrn' - use local keyword
5
6Index: new/cman/init.d/cman.in
7===================================================================
8--- new.orig/cman/init.d/cman.in 2010-12-02 07:19:35.000000000 +0100
9+++ new/cman/init.d/cman.in 2010-12-23 11:32:12.000000000 +0100
10@@ -19,6 +19,8 @@
11 # set secure PATH
12 PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@"
13
14+test -x @SBINDIR@/cman_tool || exit 0
15+
16 chkconfig2()
17 {
18 case "$1" in
19@@ -46,7 +48,7 @@
20 status()
21 {
22 pid=$(pidof $1 2>/dev/null)
23- rtrn=$?
24+ local rtrn=$?
25 if [ $rtrn -ne 0 ]; then
26 echo "$1 is stopped"
27 else