Jailed Apache1.3, processes won't die

markzero mark at darklogik.org
Sun Nov 27 21:09:46 GMT 2005


Hi.

I'm using a standard install of FreeBSD 6.0-RELEASE.

I have a minimal jail, configured in the usual manner (a minimal install
into a directory). I installed Apache 1.3 from ports into the jail and
all seemed to be well until I tried:

  # apachectl restart

The error log said:

[Sun Nov 27 20:51:23 2005] [warn] child process 59809 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:23 2005] [warn] child process 59986 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:23 2005] [warn] child process 60000 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:23 2005] [warn] child process 60075 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:23 2005] [warn] child process 60140 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:23 2005] [warn] child process 60147 did not exit, sending another SIGHUP
[Sun Nov 27 20:51:24 2005] [warn] child process 59809 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:24 2005] [warn] child process 59986 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:24 2005] [warn] child process 60000 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:24 2005] [warn] child process 60075 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:24 2005] [warn] child process 60140 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:24 2005] [warn] child process 60147 still did not exit, sending a SIGTERM
[Sun Nov 27 20:51:28 2005] [error] child process 59809 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:28 2005] [error] child process 59986 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:28 2005] [error] child process 60000 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:28 2005] [error] child process 60075 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:28 2005] [error] child process 60140 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:28 2005] [error] child process 60147 still did not exit, sending a SIGKILL
[Sun Nov 27 20:51:30 2005] [error] could not make child process 59809 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [error] could not make child process 59986 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [error] could not make child process 60000 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [error] could not make child process 60075 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [error] could not make child process 60140 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [error] could not make child process 60147 exit, attempting to continue anyway
[Sun Nov 27 20:51:30 2005] [notice] SIGHUP received.  Attempting to restart
[Sun Nov 27 20:51:31 2005] [notice] Apache/1.3.34 (Unix) configured -- resuming normal operations
[Sun Nov 27 20:51:31 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/local/sbin/suexec)
[Sun Nov 27 20:51:31 2005] [notice] Accept mutex: flock (Default: flock)

For some reason, the processes will not die. The old processes prior to
the restart die by themselves in the usual way (when 'consumed' by an
HTTP request) and the parent process creates new processes to fill the
spots. All is apparently well.

However, if I do this:

  # apachectl stop

I get the same error message as above and the old child processes still
occupy the port and the server cannot be restarted. Effectively, the
http server will not shut down (and believes that it HAS shut down) and
then will not be restarted.

The only way to rectify the situation is to log into the host machine
and kill the httpd processes running in the jail.

What is going on here?

Anybody experiencing this?

M

(please CC as I'm no longer subscribed to this list)

-- 
pgp: http://www.darklogik.org/pub/pgp/pgp.txt
0160 A46A 9A48 D3B0 C92F B690 17FB 4B72 0207 ED43
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 825 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051127/f5cbce3c/attachment.bin


More information about the freebsd-questions mailing list