From daf902070467a6a48bd0c9a8b147b8c27e0720c3 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 13 Apr 2022 10:38:46 -0400 Subject: [PATCH] 18947: Bring back keepproxy systemd unit file. refs #18947 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- cmd/arvados-server/keepproxy.service | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cmd/arvados-server/keepproxy.service 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 -- 2.30.2