Fix order of --configtest arg

It should come before the `-f`, otherwise Logstash might bind a port and
start running, rather than only perform a configtest, then exit.

fixes 4737

Fixes #4738
This commit is contained in:
Aaron Mildenstein 2016-02-29 10:00:34 -07:00
parent eb4585434f
commit d3db942b21

View file

@ -144,7 +144,7 @@ configtest() {
HOME=${LS_HOME}
export PATH HOME JAVA_OPTS LS_HEAP_SIZE LS_JAVA_OPTS LS_USE_GC_LOGGING
test_args="-f ${LS_CONF_DIR} --configtest ${LS_OPTS}"
test_args="--configtest -f ${LS_CONF_DIR} ${LS_OPTS}"
$program ${test_args}
[ $? -eq 0 ] && return 0
# Program not configured