Add systemd unit file for arvados-health.
authorWard Vandewege <wvandewege@veritasgenetics.com>
Mon, 8 Jan 2018 02:38:29 +0000 (21:38 -0500)
committerWard Vandewege <wvandewege@veritasgenetics.com>
Mon, 8 Jan 2018 02:38:29 +0000 (21:38 -0500)
refs #12260

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>

services/health/arvados-health.service [new file with mode: 0644]

diff --git a/services/health/arvados-health.service b/services/health/arvados-health.service
new file mode 100644 (file)
index 0000000..a3d0365
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+[Unit]
+Description=Arvados healthcheck server
+Documentation=https://doc.arvados.org/
+After=network.target
+AssertPathExists=/etc/arvados/config.yml
+# systemd<230
+StartLimitInterval=0
+# systemd>=230
+StartLimitIntervalSec=0
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/arvados-health
+Restart=always
+RestartSec=1s
+
+[Install]
+WantedBy=multi-user.target