ctdb-scripts: Don't bother checking PID file when starting ctdbd
authorMartin Schwenke <martin@meltin.net>
Mon, 23 Oct 2017 00:50:51 +0000 (11:50 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 7 Nov 2017 02:53:27 +0000 (03:53 +0100)
commit4b652c1527afe7eff4075c95946abfa114d74015
tree182066de09ce91e945e8d1787e86c190637c2efb
parentf025f5c0a7c33faa4fbcffd6808999f403d164d4
ctdb-scripts: Don't bother checking PID file when starting ctdbd

This is an optimisation that can cause incorrect results.  If ctdbd
was killed and there is a stale PID file then this will often cause
"CTDB exited during initialisation".  The wrapper reads the old PID
from the PID file, finds the PID gone, complains and exits.

It is better to drop this code and finally get this right.  If ctdbd
does exit early then it will take CTDB_STARTUP_TIMEOUT (default 10)
seconds before the wrapper fails.  That's not too bad...

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/ctdbd_wrapper