From: Rafael David Tinoco Date: Thu, 27 Jun 2019 20:12:25 +0000 (+0000) Subject: ctdb-config: depend on /etc/ctdb/nodes file X-Git-Tag: samba-4.11.0rc1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5803507df7def388edcd5b6cbfee30cd217b536;p=thirdparty%2Fsamba.git ctdb-config: depend on /etc/ctdb/nodes file BUG: https://bugzilla.samba.org/show_bug.cgi?id=14017 CTDB should start as a disabled unit (systemd) in most of the distributions and, when trying to enable it for the first time, user should get an unconfigured, or similar, error. Depending on /etc/ctdb/nodes file will give a clear direction to final user on what is needed in order to get cluster up and running. It should work like previous ENABLED=NO variables in SySV like initialization scripts. Signed-off-by: Rafael David Tinoco Reviewed-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/ctdb.service b/ctdb/config/ctdb.service index 675b3147417..fd81c38e26d 100644 --- a/ctdb/config/ctdb.service +++ b/ctdb/config/ctdb.service @@ -2,6 +2,7 @@ Description=CTDB Documentation=man:ctdbd(1) man:ctdb(7) After=network-online.target time-sync.target +ConditionFileNotEmpty=/etc/ctdb/nodes [Service] Type=forking