chrooted apache logging and SIGHUP
Hans van Leeuwen
hanz at hanz.nl
Wed Aug 30 03:00:06 PDT 2006
On Tuesday 29 August 2006 15:24, LeVA wrote:
> Hi!
>
> Apache runs chrooted, and it has to load modules during startup. So if I
> send a SIGHUP to the httpd process it dies, because it can not load the
> modules (from outside the chroot env.). I understand this, but I must
> send the SIGHUP to it, in order to turn over the log files with
> newsyslog. What is the solution for this (beside disabling the
> chroot...)?
> The idea to run "apachectl stop; apachectl start" instead of sending a
> SIGHUP (configured in newsyslog.conf) came to my mind, but that would
> be inconvenient for pending connections :)
>
> Thanks!
>
> Daniel
You could try Cronolog, it's in ports.
That way you get logrotation without having to restarting Apache.
Cheers,
Hans
More information about the Openbsd-newbies
mailing list