From 98edd77891d1ddc7eecbd3c5299611ceab221b19 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 2 Dec 2007 14:02:52 +0100 Subject: [PATCH] [MINOR] fix the status return of the init script R.I. Pienaar reported to me that the init script provided with haproxy did not correctly report the status of the rhstatus() function. In fact this was caused by the "exit $RETVAL" instead of "exit $?" at the end. --- examples/haproxy.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/haproxy.init b/examples/haproxy.init index 55caa250cb..4de71ee160 100644 --- a/examples/haproxy.init +++ b/examples/haproxy.init @@ -108,7 +108,7 @@ case "$1" in ;; *) echo $"Usage: $BASENAME {start|stop|restart|reload|condrestart|status|check}" - RETVAL=1 + exit 1 esac -exit $RETVAL +exit $?