ctdb_test_usage()
{
local status=${1:-2}
-
+
cat <<EOF
Usage: $0 [option]
-Options:
+Options:
-h, --help show this screen.
-v, --version show test case version.
--category show the test category (ACL, CTDB, Samba ...).
case "$1" in
-h|--help) ctdb_test_usage 0 ;;
-v|--version) ctdb_test_version ;;
- --category) echo "CTDB" ;;
+ --category) echo "CTDB" ;;
-d|--description) test_info ;;
-x) set -x ; return 0 ;;
*)
exit 0
}
-ctdb_test_init ()
+ctdb_test_init ()
{
scriptname=$(basename "$0")
testfailures=0
t=$(($t - 1))
sleep 1
done
-
+
echo "*TIMEOUT*"
-
+
return 1
}
shift # "$@" is passed to ctdbd start.
echo -n "Starting CTDB on node ${pnn}..."
-
+
if [ -n "$CTDB_NODES_SOCKETS" ] ; then
daemons_start_1 $pnn "$@"
else
echo "${0}: Healthy again, \"$trigger\" no longer detected"
rm "$detected"
fi
-
+
;;
*)
if [ -e "$timeout_trigger" ] ; then
fi
;;
*)
-
+
esac
exit 0