debugging an already running bash script

[root@server 10706]# ps -ef | grep rc
root     13903     1  0 08:56 ?        00:00:00 /usr/sbin/automount --timeout=60 /archive file /etc/auto_archive
root     10706     1  0 08:55 ?        00:00:00 /bin/bash /etc/rc.d/rc 3
root      2933 20071  0 19:38 pts/1    00:00:00 grep rc

Is there any way to debug the hanging rc script (pid 10706)?

tried pstree, the pid has no child.
tried /proc/10706, doesn't lead to where/why it is hanging
strace only have this output:

[root@server 10706]# strace -s1024 -f -p 10706
Process 10706 attached - interrupt to quit
write(1, "OK", 2

ideas? TIA.

Try running the script manually with sh -x and you should be able to see where the problem is