From c7b0fe9bdfab5f1d71451091a258d48652aadca7 Mon Sep 17 00:00:00 2001 From: Carl Tsai Date: Thu, 6 Jun 2019 15:57:47 +0800 Subject: [PATCH] Update Nomad systemd template to v0.9.1 --- templates/nomad.systemd.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/nomad.systemd.erb b/templates/nomad.systemd.erb index 6934d11..6053325 100644 --- a/templates/nomad.systemd.erb +++ b/templates/nomad.systemd.erb @@ -9,9 +9,14 @@ Group=<%= scope.lookupvar('nomad::group') %> ExecStart=<%= scope.lookupvar('nomad::bin_dir') %>/nomad agent \ -config=<%= scope.lookupvar('nomad::config_dir') %> <%= scope.lookupvar('nomad::extra_options') %> ExecReload=/bin/kill -HUP $MAINPID +KillMode=process KillSignal=SIGINT -RestartSec=42s -LimitNOFILE=131072 +LimitNOFILE=infinity +LimitNPROC=infinity +Restart=on-failure +RestartSec=2 +StartLimitBurst=3 +StartLimitIntervalSec=10 TasksMax=infinity [Install]