From 7bd414a8b7988d1bfc1b275b26a106a576cd74b6 Mon Sep 17 00:00:00 2001 From: Darwiner Date: Mon, 17 Jul 2017 15:51:29 -0400 Subject: [PATCH] Make ZK startup only after network is up In order to avoid name-resolution and connectivity issues to other cluster nodes, make sure ZK only starts up after the network has started up properly. --- templates/zookeeper.service.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/zookeeper.service.j2 b/templates/zookeeper.service.j2 index 6151d59..f169874 100644 --- a/templates/zookeeper.service.j2 +++ b/templates/zookeeper.service.j2 @@ -2,6 +2,8 @@ [Unit] Description=ZooKeeper +After=network.target +Wants=network.target [Service] Type=simple