Skip to content

Commit

Permalink
Systemd unit to stop gracefully with SIGINT
Browse files Browse the repository at this point in the history
  • Loading branch information
amiryal committed Dec 13, 2016
1 parent 61b2379 commit 26b57e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/consul.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Group=<%= scope.lookupvar('consul::group') %>
ExecStart=<%= scope.lookupvar('consul::bin_dir') %>/consul agent \
-config-dir <%= scope.lookupvar('consul::config_dir') %> <%= scope.lookupvar('consul::extra_options') %>
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=INT
Restart=always
LimitNOFILE=131072

Expand Down

0 comments on commit 26b57e1

Please sign in to comment.