From 638f3f371df58eacf67874e74934a520bafad77d Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 8 Sep 2016 12:28:00 +1000 Subject: [PATCH] ctdb-packaging: Fix systemd network dependency https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ says: network.target has very little meaning during start-up. [...] Whether any network interfaces are already configured when it is reached is undefined. [...] network-online.target is a target that actively waits until the ne[t]work is "up", CTDB expects to be able to bind a socket to a node address and expects interfaces for public IP addresses to exist. CTDB also doesn't expect time to jump, so also wait until time is synchronised. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12255 Signed-off-by: Martin Schwenke Reviewed-by: Steve French Reviewed-by: Amitay Isaacs Tested-by: Steve French (cherry picked from commit 35dcaadc8ebc9ec80e04f1d2eee694ebc6914a31) --- ctdb/config/ctdb.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/config/ctdb.service b/ctdb/config/ctdb.service index ea37c30..63cdfa9 100644 --- a/ctdb/config/ctdb.service +++ b/ctdb/config/ctdb.service @@ -1,6 +1,6 @@ [Unit] Description=CTDB -After=network.target +After=network-online.target time-sync.target [Service] Type=forking -- 2.7.4