Fixed bad logic #2482

This commit is contained in:
Alexey Milovidov 2018-08-23 00:00:52 +03:00
parent 5c1925af58
commit a5a2ec6503

View File

@ -165,7 +165,7 @@ start()
mkdir -p $CLICKHOUSE_PIDDIR
chown -R $CLICKHOUSE_USER:$CLICKHOUSE_GROUP $CLICKHOUSE_PIDDIR
# Set net_admin capabilities to support ClickHouse better introspection
su -s setcap cap_net_admin=+ep "$BINDIR/$PROGRAM"
setcap cap_net_admin=+ep "$BINDIR/$GENERIC_PROGRAM"
initdb
if ! is_running; then
# Lock should not be held while running child process, so we release the lock. Note: obviously, there is race condition.