1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

scripts: ctdb-crash-cleanup.sh uses initscript to see if ctdbd is running

"ctdb ping" can time out.  How many times should we try?

Instead, depend on the initscript to implement something sane.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 90cb337e5ccf397b69a64298559a428ff508f196)
This commit is contained in:
Martin Schwenke 2013-04-15 15:42:55 +10:00 committed by Amitay Isaacs
parent 38366b6b53
commit 1f5bfde553

View File

@ -5,7 +5,7 @@
#
# If ctdb is running, just exit
if ctdb ping >/dev/null 2>&1 ; then
if service ctdb status >/dev/null 2>&1 ; then
exit 0
fi