add reload support to the init script

Fixes #5088
This commit is contained in:
skokhanovskiy 2016-04-12 10:46:13 +05:00 committed by Suyog Rao
parent 4168a1e9e1
commit 82770921bb

View file

@ -127,6 +127,12 @@ status() {
fi fi
} }
reload() {
if status ; then
kill -HUP `cat "$pidfile"`
fi
}
force_stop() { force_stop() {
if status ; then if status ; then
stop stop
@ -175,6 +181,7 @@ case "$1" in
fi fi
exit $code exit $code
;; ;;
reload) reload ;;
restart) restart)
quiet configtest quiet configtest
@ -190,7 +197,7 @@ case "$1" in
exit $? exit $?
;; ;;
*) *)
echo "Usage: $SCRIPTNAME {start|stop|force-stop|status|restart|configtest}" >&2 echo "Usage: $SCRIPTNAME {start|stop|force-stop|status|reload|restart|configtest}" >&2
exit 3 exit 3
;; ;;
esac esac