github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/.release/linux/package/usr/lib/systemd/system/nomad.service (about) 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 EnvironmentFile=-/etc/nomad.d/nomad.env 15 ExecReload=/bin/kill -HUP $MAINPID 16 ExecStart=/usr/bin/nomad agent -config /etc/nomad.d 17 KillMode=process 18 KillSignal=SIGINT 19 LimitNOFILE=65536 20 LimitNPROC=infinity 21 Restart=on-failure 22 RestartSec=2 23 24 ## Configure unit start rate limiting. Units which are started more than 25 ## *burst* times within an *interval* time span are not permitted to start any 26 ## more. Use `StartLimitIntervalSec` or `StartLimitInterval` (depending on 27 ## systemd version) to configure the checking interval and `StartLimitBurst` 28 ## to configure how many starts per interval are allowed. The values in the 29 ## commented lines are defaults. 30 31 # StartLimitBurst = 5 32 33 ## StartLimitIntervalSec is used for systemd versions >= 230 34 # StartLimitIntervalSec = 10s 35 36 ## StartLimitInterval is used for systemd versions < 230 37 # StartLimitInterval = 10s 38 39 TasksMax=infinity 40 OOMScoreAdjust=-1000 41 42 [Install] 43 WantedBy=multi-user.target