summaryrefslogtreecommitdiffstats
path: root/standalone-container
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-12-06 10:29:37 +0000
committerArne Juul <arnej@yahooinc.com>2022-12-06 10:29:37 +0000
commit399b29951e37ba28d37d2145637a08b9513fc574 (patch)
tree3a8ed7d20b8a1f18400402b519b89f9230bea9cf /standalone-container
parent87bb10ce865023969e89692896a6e0236e4fdc73 (diff)
test new startup for standalone container
Diffstat (limited to 'standalone-container')
-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"