2015-12-02 19:33:44 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Nomad
|
|
|
|
Documentation=https://nomadproject.io/docs/
|
2018-08-01 14:59:24 +00:00
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
2015-12-02 19:33:44 +00:00
|
|
|
|
2019-03-19 22:18:12 +00:00
|
|
|
# When using Nomad with Consul it is not necessary to start Consul first. These
|
|
|
|
# lines start Consul before Nomad as an optimization to avoid Nomad logging
|
|
|
|
# that Consul is unavailable at startup.
|
2018-08-02 10:24:12 +00:00
|
|
|
#Wants=consul.service
|
|
|
|
#After=consul.service
|
|
|
|
|
2015-12-02 19:33:44 +00:00
|
|
|
[Service]
|
2019-03-19 22:18:12 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
2018-01-17 06:22:32 +00:00
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGINT
|
2019-03-19 22:18:12 +00:00
|
|
|
LimitNOFILE=infinity
|
|
|
|
LimitNPROC=infinity
|
2018-08-01 14:36:52 +00:00
|
|
|
Restart=on-failure
|
2018-08-02 10:24:12 +00:00
|
|
|
RestartSec=2
|
|
|
|
StartLimitBurst=3
|
|
|
|
StartLimitIntervalSec=10
|
2019-02-08 15:22:52 +00:00
|
|
|
TasksMax=infinity
|
2016-03-30 07:26:26 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|