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