You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
2 years ago
|
[Unit]
|
||
|
Description=Nomad
|
||
|
Documentation=https://www.nomadproject.io/docs/
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
# 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]
|
||
|
|
||
|
# Nomad server should be run as the nomad user. Nomad clients
|
||
|
# should be run as root
|
||
|
User=root
|
||
|
Group=root
|
||
|
|
||
|
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
|
||
|
|
||
|
## Configure unit start rate limiting. Units which are started more than
|
||
|
## *burst* times within an *interval* time span are not permitted to start any
|
||
|
## more. Use `StartLimitIntervalSec` or `StartLimitInterval` (depending on
|
||
|
## systemd version) to configure the checking interval and `StartLimitBurst`
|
||
|
## to configure how many starts per interval are allowed. The values in the
|
||
|
## commented lines are defaults.
|
||
|
|
||
|
# StartLimitBurst = 5
|
||
|
|
||
|
## StartLimitIntervalSec is used for systemd versions >= 230
|
||
|
# StartLimitIntervalSec = 10s
|
||
|
|
||
|
## StartLimitInterval is used for systemd versions < 230
|
||
|
# StartLimitInterval = 10s
|
||
|
|
||
|
TasksMax=infinity
|
||
|
OOMScoreAdjust=-1000
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|