nixos/clickhouse: Notify systemd about successful startup (#232443)

https://github.com/ClickHouse/ClickHouse/pull/43400
https://github.com/ClickHouse/ClickHouse/pull/46613

Yureka 97c88173 bec29a03

Changed files
+7
nixos
modules
services
databases
+7
nixos/modules/services/databases/clickhouse.nix
···
after = [ "network.target" ];
serviceConfig = {
+
Type = "notify";
User = "clickhouse";
Group = "clickhouse";
ConfigurationDirectory = "clickhouse-server";
···
StateDirectory = "clickhouse";
LogsDirectory = "clickhouse";
ExecStart = "${cfg.package}/bin/clickhouse-server --config-file=/etc/clickhouse-server/config.xml";
+
TimeoutStartSec = "infinity";
+
};
+
+
environment = {
+
# Switching off watchdog is very important for sd_notify to work correctly.
+
CLICKHOUSE_WATCHDOG_ENABLE = "0";
};
};