More robust

This commit is contained in:
Alexey Milovidov 2020-08-24 03:34:35 +03:00
parent 83f335cc7f
commit b64fabc7be

View File

@ -76,7 +76,7 @@ is_supported_command()
is_running()
{
pgrep --pidfile "$CLICKHOUSE_PIDFILE" 1> /dev/null 2> /dev/null
pgrep --pidfile "$CLICKHOUSE_PIDFILE" $(echo \"${PROGRAM}\" | cut -c1-15) 1> /dev/null 2> /dev/null
}