From fcfa02e902bc178e715eb66ce6409091e3779f8e Mon Sep 17 00:00:00 2001 From: John Adams Date: Fri, 30 Apr 2021 23:23:11 -0400 Subject: [PATCH] startlimit belongs in the unit section (#125) Co-authored-by: John Adams --- templates/nomad_systemd.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nomad_systemd.service.j2 b/templates/nomad_systemd.service.j2 index 62cac9f4..1655c43a 100644 --- a/templates/nomad_systemd.service.j2 +++ b/templates/nomad_systemd.service.j2 @@ -13,6 +13,8 @@ Description=nomad agent Documentation=https://nomadproject.io/docs/ After=network-online.target Wants=network-online.target +StartLimitBurst=3 +StartLimitIntervalSec=10 [Service] User={{ nomad_user }} @@ -26,8 +28,6 @@ LimitNOFILE=infinity LimitNPROC=infinity Restart=on-failure RestartSec=42s -StartLimitBurst=3 -StartLimitIntervalSec=10 {% if systemd_version.stdout is version('226', '>=') %} TasksMax=infinity {% endif %}