Skip to content

Commit

Permalink
Use echo instead of trace or emit.
Browse files Browse the repository at this point in the history
This should fix a test failure on CentOS 6 where 'emit' gives 'command
not found' which, as the last command run in stop(), causes stop() to
always return exit code 127.

Fixes elastic#3614
  • Loading branch information
jordansissel committed Jul 16, 2015
1 parent af51758 commit ed27fe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/logstash.sysv
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ stop() {
done
if status ; then
if [ "$KILL_ON_STOP_TIMEOUT" -eq 1 ] ; then
trace "Timeout reached. Killing $name (pid $pid) with SIGKILL. This may result in data loss."
echo "Timeout reached. Killing $name (pid $pid) with SIGKILL. This may result in data loss."
kill -KILL $pid
emit "$name killed with SIGKILL."
echo "$name killed with SIGKILL."
else
emit "$name stop failed; still running."
echo "$name stop failed; still running."
fi
else
emit "$name stopped."
echo "$name stopped."
fi
fi
}
Expand Down

0 comments on commit ed27fe1

Please sign in to comment.