2018-12-17 17:40:09 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Nomad Agent
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2019-03-19 22:18:12 +00:00
|
|
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGINT
|
2019-07-02 16:13:24 +00:00
|
|
|
LimitNOFILE=65536
|
2019-03-19 22:18:12 +00:00
|
|
|
LimitNPROC=infinity
|
2019-05-08 03:26:04 +00:00
|
|
|
TasksMax=infinity
|
2019-03-19 22:18:12 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=2
|
2020-06-03 18:06:58 +00:00
|
|
|
StartLimitIntervalSec=10
|
2019-03-19 22:18:12 +00:00
|
|
|
StartLimitBurst=3
|
2020-06-03 18:06:58 +00:00
|
|
|
|
2018-12-17 17:40:09 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|