diff options
Diffstat (limited to 'container-core/src/main/sh/find-pid')
-rwxr-xr-x | container-core/src/main/sh/find-pid | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-core/src/main/sh/find-pid b/container-core/src/main/sh/find-pid index 57393140e0b..74eade28d00 100755 --- a/container-core/src/main/sh/find-pid +++ b/container-core/src/main/sh/find-pid @@ -72,6 +72,9 @@ findhost () { findroot findhost +ROOT=${VESPA_HOME%/} +export ROOT + # END environment bootstrap section set -uo pipefail @@ -82,7 +85,7 @@ if (( $# != 1 )); then fi readonly service=$1 -readonly pid_file="$VESPA_HOME/var/run/$service.pid" +readonly pid_file="${VESPA_HOME}/var/run/$service.pid" if [ -f "$pid_file" ]; then parent_pid=$(cat "$pid_file") pid=$(pgrep --parent $parent_pid) |