From dc27ad9d53140c0b81362d7b9721c3927d10cfe7 Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 19 Oct 2020 15:34:34 +0300 Subject: [PATCH] Add piddir --- debian/clickhouse-server.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/clickhouse-server.postinst b/debian/clickhouse-server.postinst index a663fe59ce9..dc876f45954 100644 --- a/debian/clickhouse-server.postinst +++ b/debian/clickhouse-server.postinst @@ -2,6 +2,7 @@ set -e # set -x +PROGRAM=clickhouse-server CLICKHOUSE_USER=${CLICKHOUSE_USER:=clickhouse} CLICKHOUSE_GROUP=${CLICKHOUSE_GROUP:=${CLICKHOUSE_USER}} # Please note that we don't support paths with whitespaces. This is rather ignorant. @@ -12,6 +13,7 @@ CLICKHOUSE_BINDIR=${CLICKHOUSE_BINDIR:=/usr/bin} CLICKHOUSE_GENERIC_PROGRAM=${CLICKHOUSE_GENERIC_PROGRAM:=clickhouse} EXTRACT_FROM_CONFIG=${CLICKHOUSE_GENERIC_PROGRAM}-extract-from-config CLICKHOUSE_CONFIG=$CLICKHOUSE_CONFDIR/config.xml +CLICKHOUSE_PIDDIR=/var/run/$PROGRAM [ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule [ -f /etc/default/clickhouse ] && . /etc/default/clickhouse