summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventd/etc-ctdb/debug-script.sh
blob: d54de7e8ca3ed6aa2d0bcd5cd62590d09b568aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

log="${CTDB_BASE}/debug_script.log"

case "$2" in
"timeout")
	echo "args: $*" > "$log"
	;;

"verbosetimeout")
	(ctdb-event status random $2) > "$log"
	;;

"verbosetimeout2")
	exec > "$log" 2>&1
	ctdb-event status random $2
	;;

*)
	;;

esac