Bug #2026

mod_accesslog.c cronolog

Added by nbari about 5 years ago. Updated about 5 years ago.

Status:FixedStart date:2009-07-11
Priority:UrgentDue date:
Assignee:-% Done:

100%

Category:mod_accesslog
Target version:-
Missing in 1.5.x:

Description

After updating to lighttpd/1.4.23 (ssl) something changed with the pipe (before these release only a single instance of ligttpd was created) now if cronolog or pipe is used it creates a child of lighttpd

accesslog.filename = "| /usr/local/sbin/cronolog /var/log/lighttpd/%Y/%m/%Y-%m-%d-access.log"

sockstat -4l

USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
www cronolog 81485 4 tcp4 67.228.37.157:80 :*
www sh 81484 4 tcp4 67.228.37.157:80 *:

www lighttpd 81448 4 tcp4 67.228.37.157:80 *:*

ps auxwww | grep light

www 81448 0.0 0.0 27532 3324 ?? SJ 3:17AM 0:00.01 /usr/local/sbin/lighttpd f /usr/local/etc/lighttpd.conf
www 81484 0.0 0.0 7024 1364 ?? IJ 3:17AM 0:00.00 sh -c /usr/local/sbin/cronolog /var/log/lighttpd/%Y/%m/%Y
%m-%d-access.log
www 81485 0.0 0.0 2672 740 ?? SJ 3:17AM 0:00.00 /usr/local/sbin/cronolog /var/log/lighttpd/%Y/%m/%Y-%m-%d-access.log

Associated revisions

Revision 2578
Added by stbuehler about 5 years ago

Set FD_CLOEXEC for bound sockets before pipe-logger forks (fixes #2026)

Revision 2579
Added by stbuehler about 5 years ago

Set FD_CLOEXEC for bound sockets before pipe-logger forks (fixes #2026)

History

#1 Updated by stbuehler about 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2578.

Also available in: Atom