Merge branch 'master' into llvm_build_zstd

This commit is contained in:
Alexander Tokmakov 2022-10-10 17:08:10 +03:00 committed by GitHub
commit 7515cf82f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#if defined(OS_LINUX)
# include <sys/syscall.h>
#endif
#include <stdlib.h>
#include <cstdlib>
#include <unistd.h>
#include <base/safeExit.h>
#include <base/defines.h>

View File

@ -120,7 +120,11 @@ use_cron()
if [ -x "/bin/systemctl" ] && [ -f /etc/systemd/system/clickhouse-server.service ] && [ -d /run/systemd/system ]; then
return 1
fi
# 2. disabled by config
# 2. checking whether the config is existed
if [ ! -f "$CLICKHOUSE_CRONFILE" ]; then
return 1
fi
# 3. disabled by config
if [ -z "$CLICKHOUSE_CRONFILE" ]; then
return 2
fi