man strace ?
I have the same problem with apache. What do I look for in the strace?
----------------- Here is the tail end of the output: If I run "sudo strace /etc/init.d/apache restart", I get:
...
waitpid(-1, Processing config directory: /etc/apache/conf.d
[WIFEXITED(s) && WEXITSTATUS(s) == 0], 0) = 18147
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbffff31c, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fc0, [], SA_RESTORER, 0x400944a8}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nif [ $? -eq 0 ]; then\n\techo .\n\t"..., 2295) = 71
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, ".\n", 2.
) = 2
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0) = ?
[EMAIL PROTECTED]:/etc/apache$
--------------- But if I run, "sudo strace apachectl restart", I get
...
write(1, "/usr/sbin/apachectl restart: htt"..., 64/usr/sbin/apachectl restart: httpd not running, trying to start
) = 64
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork() = 18138
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8075fc0, [], SA_RESTORER, 0x400944a8}, {SIG_DFL}, 8) = 0
waitpid(-1, Processing config directory: /etc/apache/conf.d
[WIFEXITED(s) && WEXITSTATUS(s) == 0], 0) = 18138
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbffff18c, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x8075fc0, [], SA_RESTORER, 0x400944a8}, 8) = 0
write(1, "/usr/sbin/apachectl restart: htt"..., 43/usr/sbin/apachectl restart: httpd started
) = 43
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "\nexit $ERROR\n\n## ==============="..., 7081) = 2847
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(0) = ?
[EMAIL PROTECTED]:/etc/apache$
Brian -- ContagiousDesign! web . design . software . photo
Brian Rose . programmer Stacey Rose . designer (604)-588-8827 . b_roseATshawDOTca
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]