chrooted apache logging and SIGHUP
LeVA
leva at az.isten.hu
Wed Aug 30 04:38:19 PDT 2006
2006. August 30. 12:00, Hans van Leeuwen:
> 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
Thanks, I've installed, and watching if it works ok.
Daniel
--
LeVA
More information about the Openbsd-newbies
mailing list