diff options
-rwxr-xr-x | container-core/src/main/sh/find-pid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-core/src/main/sh/find-pid b/container-core/src/main/sh/find-pid index 56c387387d4..4db6562db1b 100755 --- a/container-core/src/main/sh/find-pid +++ b/container-core/src/main/sh/find-pid @@ -87,7 +87,7 @@ if [ -f "$pid_file" ]; then parent_pid=$(cat "$pid_file") pid=$(pgrep --parent $parent_pid) else - status=$(vespa-sentinel-cmd list 2>/dev/null | grep --perl-regexp "($service state=|id=\"$service\")") + status=$(vespa-sentinel-cmd list 2>/dev/null | grep --perl-regexp "(^$service state=|id=\"$service\")") if [ -z "${status}" ]; then echo "No service with name or config id '${service}'" >&2 exit 1 |