Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release > by-pkgid > a4208bb163c7d64ce5cf8e62b0b867d1 > files > 24

ctdb-4.6.5-1.mga6.armv5tl.rpm

#!/bin/sh
#
# Event script to just sleep longer than the timeout
# in the monitor action. The purpose is to trigger
# the event timeout mechanism.

[ -n "$CTDB_BASE" ] || \
    CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD")

. "${CTDB_BASE}/functions"

loadconfig ctdb

[ "$CTDB_RUN_TIMEOUT_MONITOR" = "yes" ] || exit 0

case "$1" in
monitor)
	TIMEOUT=$($CTDB getvar EventScriptTimeout | awk '{print $3}')
	echo "sleeping for $((TIMEOUT * 2)) seconds..."
	sleep $((TIMEOUT * 2))
	;;
esac

exit 0