Monday, June 04, 2007

Apache and strace

To display a trace of system calls. Useful for debugging.

root@sri# apachectl stop (First stop Apache and then restart Apache with strace)
root@sri# strace -f -o trace.txt /etc/rc.d/init.d/httpd start

-f: Traces child processes as they are created by currently traced processes.

-o: Outputs to a text file