ctdb-packaging: Fix systemd network dependency
commit44107d9d228617dedabbf0bd0961a82f4e88d078
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Sep 2016 02:28:00 +0000 (8 12:28 +1000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Sep 2016 07:00:15 +0000 (16 09:00 +0200)
treed07d3a7208cbd930f343c3295dfa5c5e66d7159b
parent87a42e6c10ab4e31ecbf16d16cadd32e252f305c
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 <martin@meltin.net>
Reviewed-by: Steve French <sfrench@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Tested-by: Steve French <sfrench@samba.org>
(cherry picked from commit 35dcaadc8ebc9ec80e04f1d2eee694ebc6914a31)
ctdb/config/ctdb.service