21128: Merge commit 'adbbc9e3c7a36d39b30f403555ee5889e32adcc0' into 21128-toolbar...
[arvados.git] / cmd / arvados-server / arvados-dispatch-cloud.service
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 [Unit]
6 Description=arvados-dispatch-cloud
7 Documentation=https://doc.arvados.org/
8 After=network.target
9 AssertPathExists=/etc/arvados/config.yml
10
11 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
12 StartLimitIntervalSec=0
13
14 [Service]
15 Type=notify
16 EnvironmentFile=-/etc/arvados/environment
17 ExecStart=/usr/bin/arvados-dispatch-cloud
18 # Set a reasonable default for the open file limit
19 LimitNOFILE=65536
20 Restart=always
21 RestartSec=1
22 RestartPreventExitStatus=2
23
24 # systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section
25 StartLimitInterval=0
26
27 [Install]
28 WantedBy=multi-user.target