]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Drop 99.timeout event script
authorMartin Schwenke <martin@meltin.net>
Mon, 11 Jun 2018 19:30:46 +0000 (05:30 +1000)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Jul 2018 06:51:22 +0000 (08:51 +0200)
This is now implemented in local daemon testing.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events/legacy/99.timeout.script [deleted file]

diff --git a/ctdb/config/events/legacy/99.timeout.script b/ctdb/config/events/legacy/99.timeout.script
deleted file mode 100755 (executable)
index 71fe0b5..0000000
+++ /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
-