From dev-return-39677-apmail-httpd-dev-archive=httpd.apache.org@httpd.apache.org Mon Nov 03 18:31:56 2003 Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 55699 invoked from network); 3 Nov 2003 18:31:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Nov 2003 18:31:56 -0000 Received: (qmail 14960 invoked by uid 500); 3 Nov 2003 18:31:43 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 14787 invoked by uid 500); 3 Nov 2003 18:31:42 -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 14734 invoked from network); 3 Nov 2003 18:31:41 -0000 Received: from unknown (HELO web4friends.com) (217.67.231.196) by daedalus.apache.org with SMTP; 3 Nov 2003 18:31:41 -0000 Received: (qmail 9032 invoked by uid 89); 3 Nov 2003 19:27:35 +0100 Received: from unknown (HELO systeem01.web4friends.com) (bas@62.234.18.15) by web4friends.com with SMTP; 3 Nov 2003 19:27:35 +0100 Message-Id: <6.0.0.22.2.20031103192922.0310d008@pop.web4friends.com> X-Sender: bas@pop.web4friends.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 03 Nov 2003 19:31:37 +0100 To: dev@httpd.apache.org From: Bastiaan van der Put Subject: Re: piped log files In-Reply-To: <3FA3CE7E.7030803@attglobal.net> References: <6.0.0.22.2.20031101160426.031464f0@pop.web4friends.com> <3FA3CE7E.7030803@attglobal.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 Hi, CustomLog "|/usr/local/apache2/bin/logresolve >> /home/accounts/x/xxxxx/logs/access_log" combined Works now, When stopping apache i still get piped log program '/usr/local/apache2/bin/logresolve >> /home/accounts/x/xxxxxx/logs/access_log' failed unexpectedly Greetings, Bas At 16:17 11/1/2003, you wrote: >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. >