From 2a2a422a6e43a8c8b391d72921bd5dcf6897d4ff Mon Sep 17 00:00:00 2001 From: Antonis Kouzoupis Date: Tue, 28 Feb 2023 13:08:08 +0100 Subject: [PATCH] [CLOUD-419] Add service lookup target as dependency to consul (#44) --- templates/default/init/consul.service.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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