mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
nixos/clickhouse: Notify systemd about successful startup (#232443)
https://github.com/ClickHouse/ClickHouse/pull/43400 https://github.com/ClickHouse/ClickHouse/pull/46613
This commit is contained in:
parent
bec29a0327
commit
97c8817371
@ -48,6 +48,7 @@ with lib;
|
||||
after = [ "network.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
User = "clickhouse";
|
||||
Group = "clickhouse";
|
||||
ConfigurationDirectory = "clickhouse-server";
|
||||
@ -55,6 +56,12 @@ with lib;
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user