17816: Fix tests
[arvados.git] / services / crunch-dispatch-local / crunch-dispatch-local.service
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4 [Unit]
5 Description=Arvados Crunch Dispatcher for LOCAL service
6 Documentation=https://doc.arvados.org/
7 After=network.target
8
9 # systemd==229 (ubuntu:xenial) obeys StartLimitInterval in the [Unit] section
10 StartLimitInterval=0
11
12 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
13 StartLimitIntervalSec=0
14
15 [Service]
16 Type=simple
17 EnvironmentFile=-/etc/arvados/crunch-dispatch-local-credentials
18 ExecStart=/usr/bin/crunch-dispatch-local -poll-interval=1 -crunch-run-command=/usr/bin/crunch-run
19 # Set a reasonable default for the open file limit
20 LimitNOFILE=65536
21 Restart=always
22 RestartSec=1
23 LimitNOFILE=1000000
24
25 # systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section
26 StartLimitInterval=0
27
28 [Install]
29 WantedBy=multi-user.target