4 flock
--wait 2 9 ||
exit 1
6 echo "===== Start of hung script debug for PID=\"$1\", event=\"$2\" ====="
8 echo "pstree -p -a ${1}:"
11 if [ "$2" = "init" ] ; then
15 echo "ctdb scriptstatus ${2}:"
16 # No use running several of these in parallel if, say, "releaseip"
17 # event hangs for multiple IPs. In that case the output would be
18 # interleaved in the log and would just be confusing.
19 ctdb scriptstatus
"$2"
21 echo "===== End of hung script debug for PID=\"$1\", event=\"$2\" ====="
23 ) 9>"${CTDB_VARDIR}/debug-hung-script.lock"