Skip to content

Commit

Permalink
Merge pull request #137 from gaieges/master
Browse files Browse the repository at this point in the history
On stop service [upstart], send TERM sig
  • Loading branch information
mattfinlayson authored Jun 17, 2016
2 parents 4b6499b + 400e1c6 commit 0fbe644
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/consul.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ sudo setcap CAP_NET_BIND_SERVICE=+eip {{ consul_home }}/bin/consul; exec sudo -u
>> {{ consul_log_file }} 2>&1
end script

{% if consul_leave_on_terminate -%}
pre-stop exec {{ consul_home }}/bin/consul leave
{% endif -%}

respawn
respawn limit 10 10

Expand Down

0 comments on commit 0fbe644

Please sign in to comment.