httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49768] New: Piped Log over /bin/sh/ -c
Date Tue, 17 Aug 2010 17:30:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49768

           Summary: Piped Log over /bin/sh/ -c
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: l.declercq@nuxwin.com


Hello ;

With Apache version 2.2.16 (under Debian Squeeze) I've problem with a Piped log
script.

Explanation:

When run under Debian Lenny (Apache version 2.2.9), Apache spawn the log script
directly. So, only one process appert when I run the 'px aux' command'.

Example for the Piped Error log:

root      1253  0.0  0.2   5208  1364 pts/0    S+   18:16   0:00 /usr/bin/perl
/var/www/ispcp/engine/ispcp-apache-logger -e


But under the latest Apache version (2.2.16), the script seem to be run over
the '/bin/sh -c' command.

root      1550  0.0  0.0   1748   484 pts/0    S+   18:16   0:00 /bin/sh -c
/var/www/ispcp/engine/ispcp-apache-logger -e
root      1551  0.0  0.2   5208  1364 pts/0    S+   18:16   0:00 /usr/bin/perl
/var/www/ispcp/engine/ispcp-apache-logger

I don't know why apache process like this now but this way is not good for me
because now, I unable to trap any signal from my perl script.

Some info about my configuration:

My relevant Apache configuration:

LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
%O" ispcplog

CustomLog "| /var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "| /var/www/ispcp/engine/ispcp-apache-logger -e"

dev:/home/nuxwin# uname -a
Linux dev 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i686 GNU/Linux

root@ispcp:~# apachectl -V
Server version: Apache/2.2.16 (Debian)
Server built:   Jul 24 2010 20:24:16
Server's Module Magic Number: 20051115:24
Server loaded:  APR 1.4.2, APR-Util 1.3.9
Compiled using: APR 1.4.2, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"
root@ispcp:~# uname -a
Linux ispcp 2.6.32-5-686 #1 SMP Sat Jul 24 02:27:10 UTC 2010 i686 GNU/Linux

Note: Sorry for my poor English, I'm french.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message