Skip to content

Commit

Permalink
set killmode/killsignal in systemd example
Browse files Browse the repository at this point in the history
The default (control-group) kill mode in systemd will kill the associated executors, leading to a commonly seen behavior of nomad client restarts losing all current allocations.

setting the KillSignal to SIGINT seems to be a reasonable default, and allows things like leave_on_interrupt to function
  • Loading branch information
insanejudge authored Jan 17, 2018
1 parent 96e00a5 commit 02aeb21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/systemd/nomad.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Description=Nomad
Documentation=https://nomadproject.io/docs/

[Service]
KillMode=process
KillSignal=SIGINT
ExecStart=/usr/bin/nomad agent -config /etc/nomad
ExecReload=/bin/kill -HUP $MAINPID
LimitNOFILE=65536
Expand Down

0 comments on commit 02aeb21

Please sign in to comment.