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