Revert "fix(IPsecUtil): Delete keywords no longer used"
[csit.git] / fdio.infra.ansible / roles / nomad / templates / nomad_systemd.service.j2
1 [Unit]
2 Description=Nomad
3 Documentation=https://nomadproject.io/docs/
4 Wants=network-online.target
5 After=network-online.target
6
7 # When using Nomad with Consul it is not necessary to start Consul first. These
8 # lines start Consul before Nomad as an optimization to avoid Nomad logging
9 # that Consul is unavailable at startup.
10 #Wants=consul.service
11 #After=consul.service
12
13 [Service]
14 # Nomad server should be run as the nomad user. Nomad clients
15 # should be run as root
16 #User=nomad
17 #Group=nomad
18
19 ExecReload=/bin/kill -HUP $MAINPID
20 ExecStart={{ nomad_bin_dir }}/nomad agent -config {{ nomad_config_dir }}
21 KillMode=process
22 KillSignal=SIGINT
23 LimitNOFILE=infinity
24 LimitNPROC=infinity
25 Restart=on-failure
26 RestartSec=2
27 StartLimitBurst=3
28 StartLimitInterval=10
29 TasksMax=infinity
30 OOMScoreAdjust=-1000
31
32 [Install]
33 WantedBy=multi-user.target