logstash.sysv.redhat uses exit code on status check

Update logstash.sysv.redhat to use exit code on status check.
This commit is contained in:
pletisan 2013-04-25 18:21:32 +02:00
parent ffc030092a
commit a2a2a6e4d2

View file

@ -146,6 +146,7 @@ case "$1" in
status)
echo -n "$DESC"
status -p $PID_FILE
exit $?
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status|restart}" >&2