Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
ctdb-packaging: Fix systemd network dependency
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Steve French <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
Tested-by: Steve French <[email protected]>
  • Loading branch information
martin-schwenke authored and Martin Schwenke committed Sep 14, 2016
1 parent 93535da commit 35dcaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctdb/config/ctdb.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=CTDB
After=network.target
After=network-online.target time-sync.target

[Service]
Type=forking
Expand Down

0 comments on commit 35dcaad

Please sign in to comment.