Update clickhouse-server.init

This commit is contained in:
Denny Crane 2022-09-13 20:54:56 -03:00 committed by GitHub
parent 32ad082f57
commit 6e5ba2648d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,9 +47,10 @@ CLICKHOUSE_PIDFILE="$CLICKHOUSE_PIDDIR/$PROGRAM.pid"
# Some systems lack "flock" # Some systems lack "flock"
command -v flock >/dev/null && FLOCK=flock command -v flock >/dev/null && FLOCK=flock
# Override defaults from optional config file # Override defaults from optional config file and export them automatically
set -a
test -f /etc/default/clickhouse && . /etc/default/clickhouse test -f /etc/default/clickhouse && . /etc/default/clickhouse
set +a
die() die()
{ {