mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
systemd unit - Do not restart if unit fails 3 times in 10s
Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
This commit is contained in:
9
dist/systemd/nomad.service
vendored
9
dist/systemd/nomad.service
vendored
@@ -4,13 +4,20 @@ Documentation=https://nomadproject.io/docs/
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
# 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
|
||||
|
||||
[Service]
|
||||
KillMode=process
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/usr/bin/nomad agent -config /etc/nomad
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
RestartSec=2
|
||||
StartLimitBurst=3
|
||||
StartLimitIntervalSec=10
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user