From f8f076dd5576da6e1ad09be10f1e2a59554e388c Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 2 May 2022 15:17:18 -0400 Subject: [PATCH] 18947: Move keep-balance systemd unit file. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- .../keep-balance => cmd/arvados-server}/keep-balance.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename {services/keep-balance => cmd/arvados-server}/keep-balance.service (87%) diff --git a/services/keep-balance/keep-balance.service b/cmd/arvados-server/keep-balance.service similarity index 87% rename from services/keep-balance/keep-balance.service rename to cmd/arvados-server/keep-balance.service index 859d707241..1c5808288b 100644 --- a/services/keep-balance/keep-balance.service +++ b/cmd/arvados-server/keep-balance.service @@ -6,12 +6,14 @@ Description=Arvados Keep Balance Documentation=https://doc.arvados.org/ After=network.target +AssertPathExists=/etc/arvados/config.yml # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section StartLimitIntervalSec=0 [Service] -Type=simple +Type=notify +EnvironmentFile=-/etc/arvados/environment ExecStart=/usr/bin/keep-balance -commit-pulls -commit-trash # Set a reasonable default for the open file limit LimitNOFILE=65536 -- 2.30.2