From: Tom Clegg Date: Wed, 13 Apr 2022 14:38:46 +0000 (-0400) Subject: 18947: Bring back keepproxy systemd unit file. X-Git-Tag: 2.5.0~215 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/daf902070467a6a48bd0c9a8b147b8c27e0720c3 18947: Bring back keepproxy systemd unit file. refs #18947 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/cmd/arvados-server/keepproxy.service b/cmd/arvados-server/keepproxy.service new file mode 100644 index 0000000000..7d4d092677 --- /dev/null +++ b/cmd/arvados-server/keepproxy.service @@ -0,0 +1,27 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +[Unit] +Description=Arvados Keep Proxy +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=notify +EnvironmentFile=-/etc/arvados/environment +ExecStart=/usr/bin/keepproxy +# Set a reasonable default for the open file limit +LimitNOFILE=65536 +Restart=always +RestartSec=1 + +# systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section +StartLimitInterval=0 + +[Install] +WantedBy=multi-user.target