github.com/superfly/nomad@v0.10.5-fly/dist/systemd/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 ExecReload=/bin/kill -HUP $MAINPID 15 ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d 16 KillMode=process 17 KillSignal=SIGINT 18 LimitNOFILE=65536 19 LimitNPROC=infinity 20 Restart=on-failure 21 RestartSec=2 22 StartLimitBurst=3 23 StartLimitIntervalSec=10 24 TasksMax=infinity 25 OOMScoreAdjust=-1000 26 27 [Install] 28 WantedBy=multi-user.target