Date: Mon, 29 May 2006 20:30:49 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: "Pelle Andersson" <pelle@filmbetyg.nu>, <freebsd-questions@freebsd.org> Subject: Re: Newsyslog problem using Apache 2.2.x Message-ID: <p0623090cc0a1417978f4@[128.113.24.47]> In-Reply-To: <JCEHKHDPIKKKCMOMJAFCMEEACFAA.pelle@filmbetyg.nu> References: <JCEHKHDPIKKKCMOMJAFCMEEACFAA.pelle@filmbetyg.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
At 8:22 AM +0200 5/29/06, Pelle Andersson wrote: >A number of days ago I sucessfully upgraded Apache from 2.0.x >series to 2.2.x series. > >Everything worked perfekt except newsyslog. I'm using the >following in newsyslog.conf (worked perfect in Apache 2.0.x): > >/var/log/apache/*.log root:wheel 640 7 * $D05 GZB /var/run/httpd.pid 30 > >The error that returns is this: >"newsyslog: log /var/log/apache/httpd-error.log.0 not compressed because >daemon(s) not notified" >"newsyslog: can't notify daemon, pid 30076: No such process" Your entry in newsyslog.conf tells newsyslog that it should look at the file /var/run/httpd.pid to find the active apache process. Newsyslog read that file when it needed to rotate the log files, and it found the number "30076" in that file. However, there was no process 30076 running at that time. Therefore, newsyslog has to assume that whatever process *is* writing to that file has not been notified that the file has changed. So it will not compress the httpd-error.log.0 file. So, you need to find out where the new version of apache is storing the active process-id (pid) for itself. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0623090cc0a1417978f4>