3e9ae481ce
Ensure that we're reusing the base configuration between client and servers without the possibility of drift. Reduce the amount of `sed` mangling of the configuration file, and make recommended changes from `shellcheck` for this section of the provisioning script. Fixes some rebase errors on the Nomad config as well.
25 lines
587 B
Desktop File
25 lines
587 B
Desktop File
[Unit]
|
|
Description=Nomad Agent
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad.d
|
|
KillMode=process
|
|
KillSignal=SIGINT
|
|
LimitNOFILE=65536
|
|
LimitNPROC=infinity
|
|
TasksMax=infinity
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
|
|
# systemd>=230 prefer StartLimitIntervalSec,StartLimitBurst in Unit,
|
|
# however Ubuntu 16.04 only has systemd==229. Use these old style settings
|
|
# as they will be supported by newer systemds.
|
|
StartLimitBurst=3
|
|
StartLimitInterval=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|