d2cd605995
This PR places StartLimitIntervalSec and StartLimitBurst in the Unit section of systemd unit files, rather than the Service section. https://www.freedesktop.org/software/systemd/man/systemd.unit.html Fixes #10065
29 lines
696 B
Desktop File
29 lines
696 B
Desktop File
[Unit]
|
|
Description=Nomad
|
|
Documentation=https://nomadproject.io/docs/
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
StartLimitIntervalSec=10
|
|
StartLimitBurst=3
|
|
|
|
# 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.
|
|
#Wants=consul.service
|
|
#After=consul.service
|
|
|
|
[Service]
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
|
KillMode=process
|
|
KillSignal=SIGINT
|
|
LimitNOFILE=65536
|
|
LimitNPROC=infinity
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
TasksMax=infinity
|
|
OOMScoreAdjust=-1000
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|