summaryrefslogtreecommitdiffstats
path: root/standalone-container
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2023-01-04 13:09:05 +0000
committerArne Juul <arnej@yahooinc.com>2023-01-04 13:09:05 +0000
commite0fe2a89d162bb7fa509cad3518338c3ecaf4c84 (patch)
treec6b628b0f2e2cd404102d359aa2857f2caad4ced /standalone-container
parent5267d4415bdc912abc550d50384578122e8598f3 (diff)
ensure referenced directories actually exist
Diffstat (limited to 'standalone-container')
-rwxr-xr-xstandalone-container/src/main/sh/standalone-container.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone-container/src/main/sh/standalone-container.sh b/standalone-container/src/main/sh/standalone-container.sh
index 56ceab18dac..c81302c9a2a 100755
--- a/standalone-container/src/main/sh/standalone-container.sh
+++ b/standalone-container/src/main/sh/standalone-container.sh
@@ -124,6 +124,7 @@ StartCommand() {
fi
local pidfile="${VESPA_HOME}/var/run/$service.pid"
+ FixDataDirectory "$(dirname "$pidfile")"
if [ "$force" = false ] && test -r "$pidfile"; then
echo "$service is already running as PID $(< "$pidfile") according to $pidfile"
return
@@ -152,7 +153,6 @@ StartCommand() {
# may be invoked w/o path. In any case, checkjava verifies bare 'java'.
checkjava
- FixDataDirectory "$(dirname "$pidfile")"
local vespa_log="${VESPA_HOME}/logs/vespa/vespa.log"
export VESPA_LOG_TARGET="file:$vespa_log"