2017-11-15 19:31:46 +00:00
|
|
|
[Unit]
|
2019-03-19 22:18:12 +00:00
|
|
|
Description=Nomad
|
|
|
|
Documentation=https://nomadproject.io/docs/
|
|
|
|
Wants=network-online.target
|
2017-11-15 19:31:46 +00:00
|
|
|
After=network-online.target
|
2021-02-23 01:23:00 +00:00
|
|
|
StartLimitIntervalSec=10
|
|
|
|
StartLimitBurst=3
|
2017-11-15 19:31:46 +00:00
|
|
|
|
2019-03-19 22:18:12 +00:00
|
|
|
# If you are running Consul, please uncomment following Wants/After configs.
|
|
|
|
# Assuming your Consul service unit name is "consul"
|
|
|
|
#Wants=consul.service
|
|
|
|
#After=consul.service
|
|
|
|
|
2017-11-15 19:31:46 +00:00
|
|
|
[Service]
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2019-03-19 22:18:12 +00:00
|
|
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGINT
|
|
|
|
LimitNOFILE=infinity
|
|
|
|
LimitNPROC=infinity
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2
|
|
|
|
TasksMax=infinity
|
2017-11-15 19:31:46 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|