chrooted apache logging and SIGHUP

LeVA leva at az.isten.hu
Tue Aug 29 06:24:23 PDT 2006


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

-- 
LeVA


More information about the Openbsd-newbies mailing list