scripts: ctdb-crash-cleanup.sh uses initscript to see if ctdbd is running
authorMartin Schwenke <martin@meltin.net>
Mon, 15 Apr 2013 05:42:55 +0000 (15:42 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 18 Apr 2013 03:22:12 +0000 (13:22 +1000)
"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)

ctdb/config/ctdb-crash-cleanup.sh

index f42605670e4b0f030b480baa7b96be9d9de257db..7796223b36b8370db9878098603be5474d7b859a 100755 (executable)
@@ -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