diff options
Diffstat (limited to 'docker/base/healthcheck_socket')
| -rwxr-xr-x | docker/base/healthcheck_socket | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/base/healthcheck_socket b/docker/base/healthcheck_socket new file mode 100755 index 000000000..cd65bae69 --- /dev/null +++ b/docker/base/healthcheck_socket @@ -0,0 +1,10 @@ +#!/bin/bash +process=$1 +socket=$2 + +# lsof truncate command name to 15 characters and this behaviour +# cannot be disabled +if [ ${#process} -gt 15 ] ; then + process=${process:0:15} +fi +lsof -Fc -Ua $socket | grep -q "c$process" |
