github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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 StartLimitIntervalSec=10 7 StartLimitBurst=3 8 9 # When using Nomad with Consul it is not necessary to start Consul first. These 10 # lines start Consul before Nomad as an optimization to avoid Nomad logging 11 # that Consul is unavailable at startup. 12 #Wants=consul.service 13 #After=consul.service 14 15 [Service] 16 ExecReload=/bin/kill -HUP $MAINPID 17 ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d 18 KillMode=process 19 KillSignal=SIGINT 20 LimitNOFILE=65536 21 LimitNPROC=infinity 22 Restart=on-failure 23 RestartSec=2 24 TasksMax=infinity 25 OOMScoreAdjust=-1000 26 27 [Install] 28 WantedBy=multi-user.target