Skip to content

Commit

Permalink
startlimit belongs in the unit section (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: John Adams <john.adams@sixgen.io>
  • Loading branch information
jadams and jadams-sixgen committed May 1, 2021
1 parent d1e072b commit fcfa02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/nomad_systemd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 %}
Expand Down

0 comments on commit fcfa02e

Please sign in to comment.