mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
4168a1e9e1
commit
82770921bb
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue