Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
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

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

Your Answer


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.