Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 98313 invoked from network); 1 Nov 2003 15:17:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Nov 2003 15:17:28 -0000 Received: (qmail 85643 invoked by uid 500); 1 Nov 2003 15:17:19 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 85586 invoked by uid 500); 1 Nov 2003 15:17:18 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 85561 invoked from network); 1 Nov 2003 15:17:18 -0000 Received: from unknown (HELO e34.co.us.ibm.com) (32.97.110.132) by daedalus.apache.org with SMTP; 1 Nov 2003 15:17:18 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id hA1FHKlQ215948 for ; Sat, 1 Nov 2003 10:17:20 -0500 Received: from attglobal.net (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay02.boulder.ibm.com (8.12.9/NCO/VER6.6) with ESMTP id hA1FHJRQ273862 for ; Sat, 1 Nov 2003 08:17:20 -0700 Message-ID: <3FA3CE7E.7030803@attglobal.net> Date: Sat, 01 Nov 2003 10:17:18 -0500 From: Jeff Trawick Reply-To: trawick@attglobal.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: piped log files References: <6.0.0.22.2.20031101160426.031464f0@pop.web4friends.com> In-Reply-To: <6.0.0.22.2.20031101160426.031464f0@pop.web4friends.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bastiaan van der Put wrote: > Piped log files still dont work with apache 2.0.48 > > piped log program '/usr/local/apache2/bin/logresolve >> > /home/accounts/x/xxxxxxxx/logs/access_log' failed unexpectedly > > So i am using a script as suggested before , called it apacheresolve : > > #!/bin/sh > exec /usr/local/apache2/bin/logresolve >>/tmp/lr.out I still have this patch in my tree for this feature. ISTR wondering what other people thought about it, and forgetting about the issue until you just brought it up again. Any concerns out there? Index: server/log.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/log.c,v retrieving revision 1.135 diff -u -r1.135 log.c --- server/log.c 14 Jul 2003 14:48:40 -0000 1.135 +++ server/log.c 1 Nov 2003 15:13:35 -0000 @@ -743,6 +743,8 @@ apr_status_t status; if (((status = apr_procattr_create(&procattr, pl->p)) != APR_SUCCESS) || + ((status = apr_procattr_cmdtype_set(procattr, APR_SHELLCMD)) + != APR_SUCCESS) || ((status = apr_procattr_child_in_set(procattr, ap_piped_log_read_fd(pl), ap_piped_log_write_fd(pl))) Any comments from the audience? > When stopping apache I also get : > > piped log program '/usr/local/apache2/bin/apacheresolve >> > /home/accounts/x/xxxxx/logs/access_log' failed unexpectedly There is a PR for this issue. It is perhaps timing related, as it does not affect everybody.