[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.
This commit is contained in:
Willy Tarreau 2007-12-02 14:02:52 +01:00
parent 7b066db3bf
commit 98edd77891
1 changed files with 2 additions and 2 deletions

View File

@ -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 $?