From af716ef1ce9b7cde18841f878ae62ede7ffc8e2e Mon Sep 17 00:00:00 2001 From: Luiz Amaral Date: Tue, 16 Apr 2024 13:28:22 +0200 Subject: [PATCH] Add systemd dependency on clickhouse-server Without this dependency, graphite-ch-optimizer will try to start before the Clickhouse server is ready, leading to a failure to start. --- packaging/graphite-ch-optimizer.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/graphite-ch-optimizer.service b/packaging/graphite-ch-optimizer.service index 3882353..d751f69 100644 --- a/packaging/graphite-ch-optimizer.service +++ b/packaging/graphite-ch-optimizer.service @@ -1,6 +1,7 @@ [Unit] Description=Service to optimize stale GraphiteMergeTree tables -After=network.target +After=network.target clickhouse-server.service +Wants=clickhouse-server.service [Service] Type=simple