mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 04:42:28 +00:00
[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:
parent
7b066db3bf
commit
98edd77891
@ -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 $?
|
||||
|
Loading…
Reference in New Issue
Block a user