httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Kernes <tker...@buckwestern.com>
Subject [users@httpd] Re: Start/Stop Apache
Date Sun, 17 Nov 2002 22:30:55 GMT
OK, I have the trace...I do not really know what I am looking at though.
Here is the trace from the time (I think) I issue 'httpd -k stop':

12915 --- SIGTERM (Terminated) ---
12915 getpgrp()                         = 12915
12915 kill(-12915, SIGTERM)             = 0
12916 <... accept resumed> 0x101d5df4, [16]) = ? ERESTARTSYS (To be
restarted)
12917 <... accept resumed> 0x101d5df4, [16]) = ? ERESTARTSYS (To be
restarted)
12918 <... accept resumed> 0x101d5df4, [16]) = ? ERESTARTSYS (To be
restarted)
12916 --- SIGTERM (Terminated) ---
12917 --- SIGTERM (Terminated) ---
12918 --- SIGTERM (Terminated) ---
12916 close(11 <unfinished ...>
12917 close(11 <unfinished ...>
12918 close(11 <unfinished ...>
12916 <... close resumed> )             = 0
12917 <... close resumed> )             = 0
12918 <... close resumed> )             = 0
12916 close(10 <unfinished ...>
12917 close(10 <unfinished ...>
12918 close(10 <unfinished ...>
12916 <... close resumed> )             = 0
12917 <... close resumed> )             = 0
12918 <... close resumed> )             = 0
12916 exit(0)                           = ?
12917 exit(0)                           = ?
12918 exit(0)                           = ?
12919 <... accept resumed> 0x101d5df4, [16]) = ? ERESTARTSYS (To be
restarted)
12920 <... accept resumed> 0x101d5df4, [16]) = ? ERESTARTSYS (To be
restarted)
12915 --- SIGTERM (Terminated) ---
12919 --- SIGTERM (Terminated) ---
12920 --- SIGTERM (Terminated) ---
12915 --- SIGCHLD (Child exited) ---
12919 close(11 <unfinished ...>
12920 close(11 <unfinished ...>
12915 _newselect(0, 0, 0, 0, 0x7ffff908 <unfinished ...>
12919 <... close resumed> )             = 0
12920 <... close resumed> )             = 0
12919 close(10 <unfinished ...>
12920 close(10 <unfinished ...>
12919 <... close resumed> )             = 0
12920 <... close resumed> )             = 0
12919 exit(0)                           = ?
12915 <... _newselect resumed> )        = -1 EINTR (Interrupted system call)


Then the processes look like this:

root     12915  <snip> T    16:04   0:01 /etc/httpd/bin/httpd -k start
apache   12920  <snip> Z    16:04   0:00 [httpd <defunct>]
apache   12916  <snip> Z    16:04   0:00 [httpd <defunct>]
apache   12917  <snip> Z    16:04   0:00 [httpd <defunct>]
apache   12918  <snip> Z    16:04   0:00 [httpd <defunct>]
apache   12919  <snip> Z    16:04   0:00 [httpd <defunct>]

And the strace did this (core dumped):

# strace -f -o httpd.log /etc/httpd/bin/httpd -k start
Process 12915 attached
Process 12916 attached
Process 12917 attached
Process 12918 attached
Process 12919 attached
Process 12920 attached
Process 12916 detached
Process 12917 detached
Process 12918 detached
Process 12919 detached
Segmentation fault (core dumped)


on 11/16/2002 13:36, joshua@slive.ca wrote:

> 
> On Sat, 16 Nov 2002, Thomas Kernes wrote:
> 
>> That's right.  When I stop Apache using any of the commands or scripts, it
>> will stop every process but the root-owned one.  When I kill the root
>> process, I kill it by 'kill -9 XXXXX'.
> 
> OK.  There is certainly somthing wrong.  One thing you can try is to get a
> syscall trace on the root-owned process to see what is blocking it from
> dying.
> 
> Joshua.
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message