smbd/smb2_ioctl: fail zero length copy chunk requests
[Samba.git] / ctdb / config / debug-hung-script.sh
blob198424241885fb1a3481ba7b6136d0d18e73b570
1 #!/bin/sh
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}:"
9 pstree -p -a $1
11 if [ "$2" = "init" ] ; then
12 exit 0
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"