summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xctdb/config/ctdbd_wrapper18
1 files changed, 2 insertions, 16 deletions
diff --git a/ctdb/config/ctdbd_wrapper b/ctdb/config/ctdbd_wrapper
index 8a9f554dd5f..8eec379910e 100755
--- a/ctdb/config/ctdbd_wrapper
+++ b/ctdb/config/ctdbd_wrapper
@@ -227,22 +227,8 @@ start()
_timeout="${CTDB_STARTUP_TIMEOUT:-10}"
_count=0
while [ "$_count" -lt "$_timeout" ] ; do
- # If we don't have the PID then try to read it.
- [ -n "$_pid" ] || read _pid 2>/dev/null <"$pidfile"
-
- # If we got the PID but the PID file has gone or the process
- # is no longer running then stop waiting... CTDB is dead.
- if [ -n "$_pid" ] ; then
- if [ ! -e "$pidfile" ] || ! kill -0 "$_pid" 2>/dev/null ; then
- echo "CTDB exited during initialisation - check logs."
- kill_ctdbd "$_pid"
- drop_all_public_ips >/dev/null 2>&1
- return 1
- fi
-
- if $CTDB runstate first_recovery startup running >/dev/null 2>&1 ; then
- return 0
- fi
+ if $CTDB runstate first_recovery startup running >/dev/null 2>&1 ; then
+ return 0
fi
_count=$((_count + 1))