From: Willy Tarreau Date: Sun, 2 Dec 2007 13:02:52 +0000 (+0100) Subject: [MINOR] fix the status return of the init script X-Git-Tag: v1.3.14~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98edd77891d1ddc7eecbd3c5299611ceab221b19;p=thirdparty%2Fhaproxy.git [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. --- 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 $?