From e94e9b92438edc3c9142084ddeeedec3c9d21c8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20B=C3=A9rtoli?= Date: Mon, 19 Oct 2020 10:06:18 -0300 Subject: [PATCH] fix(crunch-dispatch-local): add missing service file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit refs #16996 Arvados-DCO-1.1-Signed-off-by: Javier Bértoli --- .../crunch-dispatch-local.service | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 services/crunch-dispatch-local/crunch-dispatch-local.service diff --git a/services/crunch-dispatch-local/crunch-dispatch-local.service b/services/crunch-dispatch-local/crunch-dispatch-local.service new file mode 100644 index 0000000000..692d81e570 --- /dev/null +++ b/services/crunch-dispatch-local/crunch-dispatch-local.service @@ -0,0 +1,29 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 +[Unit] +Description=Arvados Crunch Dispatcher for LOCAL service +Documentation=https://doc.arvados.org/ +After=network.target + +# systemd==229 (ubuntu:xenial) obeys StartLimitInterval in the [Unit] section +StartLimitInterval=0 + +# systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section +StartLimitIntervalSec=0 + +[Service] +Type=simple +EnvironmentFile=-/etc/arvados/crunch-dispatch-local-credentials +ExecStart=/usr/bin/crunch-dispatch-local -poll-interval=1 -crunch-run-command=/usr/bin/crunch-run +# Set a reasonable default for the open file limit +LimitNOFILE=65536 +Restart=always +RestartSec=1 +LimitNOFILE=1000000 + +# systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section +StartLimitInterval=0 + +[Install] +WantedBy=multi-user.target -- 2.30.2