Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b84... Commit: b843e89a54d9bdc9750b529f59405040b4b780db Parent: 25ee476443cf780579d36e0c4c695dbe06acf261 Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Tue Aug 30 11:36:47 2011 +0200 Committer: Fabio M. Di Nitto fdinitto@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@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
cluster-commits@lists.fedorahosted.org