21 lines
398 B
SYSTEMD
21 lines
398 B
SYSTEMD
[Unit]
|
|
Description=Nomad Agent
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
StartLimitIntervalSec=10
|
|
StartLimitBurst=3
|
|
|
|
[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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|