parameterize debian init startup timeout
This commit is contained in:
parent
7714c925e0
commit
c018a3a7d1
2 changed files with 2 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ es_xpack_features: ["alerting","monitoring","graph","ml","security"]
|
|||
#They do not effect the current configuration
|
||||
es_api_host: "localhost"
|
||||
es_api_port: 9200
|
||||
es_debian_startup_timeout: 10
|
||||
|
||||
# Since ansible 2.2 the following variables need to be defined
|
||||
# to allow the role to be conditionally played with a when condition.
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ case "$1" in
|
|||
return=$?
|
||||
if [ $return -eq 0 ]; then
|
||||
i=0
|
||||
timeout=10
|
||||
timeout={{es_debian_startup_timeout}}
|
||||
# Wait for the process to be properly started before exiting
|
||||
until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
|
||||
do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue