cluster: STABLE31 - cman: fix init script status return code to not overwrite global var
Fabio M. Di Nitto
fabbione at fedoraproject.org
Tue Aug 30 09:45:04 UTC 2011
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b843e89a54d9bdc9750b529f59405040b4b780db
Commit: b843e89a54d9bdc9750b529f59405040b4b780db
Parent: 25ee476443cf780579d36e0c4c695dbe06acf261
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Tue Aug 30 11:36:47 2011 +0200
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Tue Aug 30 11:36:47 2011 +0200
cman: fix init script status return code to not overwrite global var
Reported by Dietmar Maurer <dietmar at proxmox.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
cman/init.d/cman.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 0fcf52a..fecefea 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -46,13 +46,13 @@ failure()
status()
{
pid=$(pidof $1 2>/dev/null)
- rtrn=$?
- if [ $rtrn -ne 0 ]; then
+ statusrtrn=$?
+ if [ $statusrtrn -ne 0 ]; then
echo "$1 is stopped"
else
echo "$1 (pid $pid) is running..."
fi
- return $rtrn
+ return $statusrtrn
}
# rpm based distros
More information about the cluster-commits
mailing list