From: Martin Schwenke Date: Mon, 11 Jun 2018 19:30:46 +0000 (+1000) Subject: ctdb-scripts: Drop 99.timeout event script X-Git-Tag: tevent-0.9.37~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd9930ea1d1cabbfa1a97c484c13b6773560dbbe;p=thirdparty%2Fsamba.git ctdb-scripts: Drop 99.timeout event script This is now implemented in local daemon testing. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/events/legacy/99.timeout.script b/ctdb/config/events/legacy/99.timeout.script deleted file mode 100755 index 71fe0b54a44..00000000000 --- a/ctdb/config/events/legacy/99.timeout.script +++ /dev/null @@ -1,25 +0,0 @@ -#!/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" - -load_script_options - -[ "$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 -