diff --git a/templates/default/init/consul.service.erb b/templates/default/init/consul.service.erb index 47f3e51d..e025eb94 100644 --- a/templates/default/init/consul.service.erb +++ b/templates/default/init/consul.service.erb @@ -1,8 +1,9 @@ [Unit] Description="HashiCorp Consul - A service mesh solution" Documentation=https://www.consul.io/ +Wants=nss-lookup.target nss-user-lookup.target Requires=network-online.target -After=network-online.target +After=network-online.target nss-lookup.target nss-user-lookup.target ConditionFileNotEmpty=<%= node['consul']['conf_dir'] %>/consul.hcl StartLimitIntervalSec=30 StartLimitBurst=20