aboutsummaryrefslogtreecommitdiffstats
path: root/standalone-container/src/main/sh/standalone-container.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-container/src/main/sh/standalone-container.sh')
-rwxr-xr-xstandalone-container/src/main/sh/standalone-container.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/standalone-container/src/main/sh/standalone-container.sh b/standalone-container/src/main/sh/standalone-container.sh
index 02c71beaac5..c5747faf0d5 100755
--- a/standalone-container/src/main/sh/standalone-container.sh
+++ b/standalone-container/src/main/sh/standalone-container.sh
@@ -108,7 +108,6 @@ StartCommand() {
# stuff for the process:
local appdir="$VESPA_HOME/conf/$service-app"
- local pidfile="$VESPA_HOME/var/run/$service.pid"
local cfpfile="$VESPA_HOME/var/jdisc_core/$service.properties"
local bundlecachedir="$VESPA_HOME/var/vespa/bundlecache/$service"
@@ -117,6 +116,8 @@ StartCommand() {
fixlimits
checkjava
+ FixDataDirectory "$(dirname "$pidfile")"
+
local vespa_log="$VESPA_HOME/logs/vespa/vespa.log"
export VESPA_LOG_TARGET="file:$vespa_log"
FixDataDirectory "$(dirname "$vespa_log")"