s3-rpc_server: Log authorization to DCE/RPC for anonymous and ncacn_np pass-though
[Samba.git] / ctdb / config / events.d / 99.timeout
blob4aa594085d823cb48aed24a4d95725f32371e8ca
1 #!/bin/sh
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"
12 loadconfig ctdb
14 [ "$CTDB_RUN_TIMEOUT_MONITOR" = "yes" ] || exit 0
16 case "$1" in
17 monitor)
18 TIMEOUT=$($CTDB getvar EventScriptTimeout | awk '{print $3}')
19 echo "sleeping for $((TIMEOUT * 2)) seconds..."
20 sleep $((TIMEOUT * 2))
22 esac
24 exit 0