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
|
|
|
|
2018-08-02 10:24: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
|
|
|
|
|
2015-12-02 19:33:44 +00:00
|
|
|
[Service]
|
2018-01-17 06:22:32 +00:00
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGINT
|
2016-03-30 07:26:26 +00:00
|
|
|
ExecStart=/usr/bin/nomad agent -config /etc/nomad
|
2016-05-28 21:12:57 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
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
|
2016-03-30 07:26:26 +00:00
|
|
|
LimitNOFILE=65536
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|