httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] ErrorLog/CustomLog/Piped Commands Q
Date Thu, 22 May 2003 18:42:55 GMT

>Does anyone know why?

Do both process have the same parent PID? I've noticed that with a perl
shell in the pipe there is one process that is the shell executing the perl
script who's parent is httpd and one process that is the actual perl binary
who's parent is the shell. Follow that? :) It looks like this:

    root 25982     1 25982 25982  0 16:02:10 ?        0:00
    root 25983 25982 25982 25982  0 16:02:10 ?        0:00 /bin/sh
-c  /usr/local/apache/bin/ --file /tmp/access --time 3AM
    root 25984 25983 25982 25982  1 16:02:10 ?        0:00 /usr/bin/perl
/usr/local/apache/bin/ --file /tmp/access --time 3AM

>Should I worry about file locking type issues?  If the script is writting
to a logfile, >won't >this cause problems if both instances of the error
script try to write to that file at the same time?  It >doesn't >seem to be
happening ever, but I really don't know what that second script is doing at

I think this would all depend on how the script was written.

>On Thu, May 22, 2003 at 01:35:21PM +0100, Alasdair Lumsden wrote:
> > >     I've noticed that when the server starts up there are 3 of the
> > scripts
> > > starting, one for the CustomLog entry, and two for the
ErrorLog.  Does
> > > anyone know why this happens?  I can't imagine why it would start
> > mutiple
> > > processes for the ErrorLog.
> >
> > I've just tested this and it does the same thing here. I'd imagine
> > Apache is hardwired to do this.
> >

-Norm Ackroyd

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message