Skip to content

Commit

Permalink
e2e: fix nomad service for systemd<230
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed May 8, 2019
1 parent 8932ccd commit 62c84e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions e2e/terraform/shared/config/nomad.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ KillMode=process
KillSignal=SIGINT
LimitNOFILE=infinity
LimitNPROC=infinity
TasksMax=infinity
Restart=on-failure
RestartSec=2

# systemd>=230 prefer StartLimitIntervalSec,StartLimitBurst in Unit,
# however Ubuntu 16.04 only has systemd==229. Use these old style settings
# as they will be supported by newer systemds.
StartLimitBurst=3
StartLimitIntervalSec=10
TasksMax=infinity
StartLimitInterval=10

[Install]
WantedBy=multi-user.target

0 comments on commit 62c84e0

Please sign in to comment.