aboutsummaryrefslogtreecommitdiffstats
path: root/standalone-container/src
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-container/src')
-rwxr-xr-xstandalone-container/src/main/sh/standalone-container.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/standalone-container/src/main/sh/standalone-container.sh b/standalone-container/src/main/sh/standalone-container.sh
index 9a780f29c86..59a358240b6 100755
--- a/standalone-container/src/main/sh/standalone-container.sh
+++ b/standalone-container/src/main/sh/standalone-container.sh
@@ -132,6 +132,12 @@ StartCommand() {
# common setup
export VESPA_SERVICE_NAME="$service"
+ if grep -q '"region": "cd-us-west-1"' /etc/vespa/host-admin.json; then
+ ${VESPA_HOME}/libexec/vespa/script-utils run-standalone-container "${jvm_arguments[@]}" &
+ echo $! > "$pidfile"
+ return
+ fi
+
# stuff for the process:
local appdir="${VESPA_HOME}/conf/$service-app"
local cfpfile="${VESPA_HOME}/var/jdisc_container/$service.properties"