|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: /bin/sh on /etc/rc terminated - pipes in httpd.conf?
From: Dan Harnett (danh
nfol.com)
Date: Fri Aug 20 2004 - 08:38:31 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Aug 20, 2004 at 03:17:37PM +0200, Han Boetes wrote:
> Looks like it doesn't fork into the background. Can you repeat that
> manually? That would be the most interesting testcase.
>
> As a workaround you can replace ``/usr/sbin/httpd $httpd_flags'' with
> ``/usr/sbin/httpd $httpd_flags &'' or ``/usr/sbin/apachectl start''
>
> Or whatever command you normally use to start apache.
init only behaves like this if it receives SIGTERM. You cannot repeat
it manually. It only happens with init. If you have a reasonably fast
machine that can get through /etc/rc{,.local} before apache does its
thing, you won't see the problem. Adding a 'sleep 5' after the apache
startup in /etc/rc makes the bug reproducable. Also, it ONLY happens if
you are using a pipe in one of the logging constructs, TransferLog or
CustomLog.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]