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 e7bfa934a8
commit b1ef716a13

View file

@ -127,6 +127,12 @@ status() {
fi
}
reload() {
if status ; then
kill -HUP `cat "$pidfile"`
fi
}
force_stop() {
if status ; then
stop
@ -175,6 +181,7 @@ case "$1" in
fi
exit $code
;;
reload) reload ;;
restart)
quiet configtest
@ -190,7 +197,7 @@ case "$1" in
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
;;
esac