From 44e16e01da9d3b7d647d379f8c9cab763fc7912a Mon Sep 17 00:00:00 2001 From: John Griffith Date: Fri, 19 Sep 2014 10:26:51 -0600 Subject: [PATCH] Relocate SERVICE_TIMEOUT to stackrc cinder_driver_cert.sh restarts volume services and needs the SERVICE_TIMEOUT variable set, but that was being declared in stack.sh. Rather than create another duplicate variable in the cert script, just move the SERVICE_TIMEOUT variable to stackrc so it can be shared like other common variables. Change-Id: I650697df015fed8f400101a13b6165ac39626877 Closes-Bug: 1350221 --- stack.sh | 3 --- stackrc | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stack.sh b/stack.sh index c20e61031d..e795f375b8 100755 --- a/stack.sh +++ b/stack.sh @@ -325,9 +325,6 @@ SYSLOG_PORT=${SYSLOG_PORT:-516} # Use color for logging output (only available if syslog is not used) LOG_COLOR=`trueorfalse True $LOG_COLOR` -# Service startup timeout -SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60} - # Reset the bundle of CA certificates SSL_BUNDLE_FILE="$DATA_DIR/ca-bundle.pem" rm -f $SSL_BUNDLE_FILE diff --git a/stackrc b/stackrc index 936eb9c293..ac6efdd2cf 100644 --- a/stackrc +++ b/stackrc @@ -516,6 +516,11 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http} # (the default number of workers for many services is the number of CPUs) # API_WORKERS=4 +# Service startup timeout +SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60} + +# Following entries need to be last items in file + # Local variables: # mode: shell-script # End: