diff --git a/templates/nomad_systemd.service.j2 b/templates/nomad_systemd.service.j2 index ae861717..fd0174cf 100644 --- a/templates/nomad_systemd.service.j2 +++ b/templates/nomad_systemd.service.j2 @@ -22,6 +22,8 @@ ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }} ExecReload=/bin/kill -HUP $MAINPID KillMode=process KillSignal=SIGINT +LimitNOFILE=infinity +LimitNPROC=infinity Restart=on-failure RestartSec=42s