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