Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to debug where mysql starting is hanged up,so i need what are the files executing in order when starting mysql through service.

thanks.

share|improve this question
2  
Have you tried using strace and lsof? –  Dennis Williamson Jul 30 '10 at 13:04
    
I tried strace , its amazing. for simple cat its giving tons of information. But I think separate program is required to process output of strace.same for lsof. I am very new to this type of debugging. Thanks a lot. –  Kumar Jul 31 '10 at 10:42
add comment

1 Answer

Try "set -x" at the scripts beginning, this will help to see where it hangs, use strace and lsof to see why that binary hangs.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.