Slightly better init script

This commit is contained in:
Alexey Milovidov 2020-08-24 03:27:10 +03:00
parent d44982072c
commit 83f335cc7f

View File

@ -76,7 +76,7 @@ is_supported_command()
is_running()
{
[ -r "$CLICKHOUSE_PIDFILE" ] && pgrep -s $(cat "$CLICKHOUSE_PIDFILE") 1> /dev/null 2> /dev/null
pgrep --pidfile "$CLICKHOUSE_PIDFILE" 1> /dev/null 2> /dev/null
}