mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
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:
parent
ffc030092a
commit
a2a2a6e4d2
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ case "$1" in
|
|||
status)
|
||||
echo -n "$DESC"
|
||||
status -p $PID_FILE
|
||||
exit $?
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart}" >&2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue