httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: Issue using piped logging
Date Thu, 14 Dec 2006 12:41:34 GMT
On Thu, Dec 14, 2006 at 04:33:33PM +0530, MKhurana@IN.Safenet-inc.com wrote:
> I used following in my httpd.conf for error logging
> 
> ErrorLog "|/bin/sh -c 'RUNTIME=/myruntime LD_LIBRARY_PATH=/myruntime/lib
> /myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
> 
> but this not working and httpd do not starts there are no logs about what
> happened ,but the same thing works on Apache 2.0.53.Instead if I use
> following everything goes fine and httpd starts up 
> 
> ErrorLog "|/myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"

In 2.2 the ErrorLog value is passed directly as the argument for /bin/sh 
-c, so:

   ErrorLog "|RUNTIME=/blah /etc/etc"

will execute /bin/sh -c 'RUNTIME=/blah /etc/etc'.

joe

Mime
View raw message