Skip to content

Commit

Permalink
Merge pull request #11 from damoun/update-systemd
Browse files Browse the repository at this point in the history
update systemd service
  • Loading branch information
dudemcbacon authored Sep 14, 2020
2 parents 8afbb9e + ae0019d commit 70fcab1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions templates/nomad.systemd.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
[Unit]
Description=Nomad agent
Requires=network-online.target
Documentation=https://nomadproject.io/docs/
Wants=network-online.target
After=network-online.target
StartLimitBurst=3
StartLimitIntervalSec=10

[Service]
EnvironmentFile=-/etc/sysconfig/nomad
Restart=on-failure
ExecStart=<%= scope.lookupvar('nomad::bin_dir') %>/nomad agent -config=<%= scope.lookupvar('nomad::config_dir') %> <%= scope.lookupvar('nomad::extra_options') %>
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
RestartSec=42s
LimitNOFILE=131072
RestartSec=2
LimitNOFILE=65536
LimitNPROC=infinity
KillMode=process
TasksMax=infinity

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit 70fcab1

Please sign in to comment.