From: Tom Clegg Date: Mon, 2 May 2022 19:17:18 +0000 (-0400) Subject: 18947: Move keep-balance systemd unit file. X-Git-Tag: 2.5.0~185^2~2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/f8f076dd5576da6e1ad09be10f1e2a59554e388c 18947: Move keep-balance systemd unit file. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- 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