parameterize debian init startup timeout

This commit is contained in:
Stephan Eckweiler 2017-10-09 17:11:06 +01:00
parent 7714c925e0
commit c018a3a7d1
2 changed files with 2 additions and 1 deletions

View file

@ -32,6 +32,7 @@ es_xpack_features: ["alerting","monitoring","graph","ml","security"]
#They do not effect the current configuration #They do not effect the current configuration
es_api_host: "localhost" es_api_host: "localhost"
es_api_port: 9200 es_api_port: 9200
es_debian_startup_timeout: 10
# Since ansible 2.2 the following variables need to be defined # Since ansible 2.2 the following variables need to be defined
# to allow the role to be conditionally played with a when condition. # to allow the role to be conditionally played with a when condition.

View file

@ -165,7 +165,7 @@ case "$1" in
return=$? return=$?
if [ $return -eq 0 ]; then if [ $return -eq 0 ]; then
i=0 i=0
timeout=10 timeout={{es_debian_startup_timeout}}
# Wait for the process to be properly started before exiting # Wait for the process to be properly started before exiting
until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1 until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
do do