From b64fabc7be9bc8c52f3a2b78a98cf3f524d6a135 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 24 Aug 2020 03:34:35 +0300 Subject: [PATCH] More robust --- debian/clickhouse-server.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/clickhouse-server.init b/debian/clickhouse-server.init index 1f8a8192f5a..bed05e91092 100755 --- a/debian/clickhouse-server.init +++ b/debian/clickhouse-server.init @@ -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 }