2af56c8d0c1e62b3c2a1d3eb5f0a5c1a65be7b4a
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.service
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 [Unit]
6 Description=Arvados Crunch Dispatcher for SLURM
7 Documentation=https://doc.arvados.org/
8 After=network.target
9
10 # systemd==229 (ubuntu:xenial) obeys StartLimitInterval in the [Unit] section
11 StartLimitInterval=0
12
13 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
14 StartLimitIntervalSec=0
15
16 [Service]
17 Type=notify
18 ExecStart=/usr/bin/crunch-dispatch-slurm
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