mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Merge pull request #4547 from msvbhat/systemd-unit-restart
Nomad systemd unit - Add restarting on failure
This commit is contained in:
11
dist/systemd/nomad.service
vendored
11
dist/systemd/nomad.service
vendored
@@ -1,12 +1,23 @@
|
||||
[Unit]
|
||||
Description=Nomad
|
||||
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=2
|
||||
StartLimitBurst=3
|
||||
StartLimitIntervalSec=10
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user