mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Daemon: do not create pid file when running in console.
This commit is contained in:
parent
fcdd6e100d
commit
e44e530649
@ -218,8 +218,9 @@ void Daemon::initialize(Application& self)
|
||||
p_TaskManager = new ("TaskManager") TaskManager();
|
||||
ServerApplication::initialize(self);
|
||||
|
||||
// Создадим pid-file
|
||||
m_Pid.seed(config().getString("pid", "pid"));
|
||||
// Создадим pid-file, если запущен, как демон
|
||||
if (config().getBool("application.runAsDaemon", false))
|
||||
m_Pid.seed(config().getString("pid", "pid"));
|
||||
|
||||
// Считаем конфигурацию
|
||||
reloadConfiguration();
|
||||
|
Loading…
Reference in New Issue
Block a user