diff options
author | Rafael David Tinoco <rafaeldtinoco@ubuntu.com> | 2019-06-27 20:12:25 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-08 07:30:12 +0000 |
commit | f839423bdab6133720c7a26c4a2300a828c74c14 (patch) | |
tree | 735fff1c81c8e371ea8784061d2b1cfc514348eb /ctdb | |
parent | b0ebe62fe51e42c6a78a16af68f2aec0424d5b7a (diff) | |
download | samba-f839423bdab6133720c7a26c4a2300a828c74c14.tar.gz |
ctdb-config: depend on /etc/ctdb/nodes file
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.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14017
RN: ctdb.service should only start if /etc/ctdb/nodes is not empty
Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit c5803507df7def388edcd5b6cbfee30cd217b536)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/config/ctdb.service | 1 |
1 files changed, 1 insertions, 0 deletions
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 |