3 # Event script to just sleep longer than the timeout
4 # in the monitor action. The purpose is to trigger
5 # the event timeout mechanism.
7 [ -n "$CTDB_BASE" ] || \
8 CTDB_BASE=$(d=$(dirname "$0") ; cd -P "$d" ; dirname "$PWD")
10 . "${CTDB_BASE}/functions"
14 [ "$CTDB_RUN_TIMEOUT_MONITOR" = "yes" ] || exit 0
18 TIMEOUT=$($CTDB getvar EventScriptTimeout | awk '{print $3}')
19 echo "sleeping for $((TIMEOUT * 2)) seconds..."
20 sleep $((TIMEOUT * 2))