Skip to content

Commit

Permalink
notify systemd when consul daemon is really started
Browse files Browse the repository at this point in the history
  • Loading branch information
ymartin-ovh committed Oct 8, 2020
1 parent cfbeea5 commit 576da93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/consul.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ After=network-online.target
Wants=network-online.target

[Service]
<% if scope.lookupvar('consul::config::config_hash')['retry_join'].nil? or \
scope.lookupvar('consul::config::config_hash')['retry_join'].length < 2 -%>
Type=exec
<% else -%>
Type=notify
<% end -%>
<% if @allow_binding_to_root_ports == true -%>
AmbientCapabilities=CAP_NET_BIND_SERVICE
<% end -%>
Expand Down

0 comments on commit 576da93

Please sign in to comment.