From owner-freebsd-questions@FreeBSD.ORG Tue May 30 00:30:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4779C16A701 for ; Tue, 30 May 2006 00:30:57 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp5.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C782943D46 for ; Tue, 30 May 2006 00:30:56 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp5.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k4U0Upkg015175; Mon, 29 May 2006 20:30:52 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Mon, 29 May 2006 20:30:49 -0400 To: "Pelle Andersson" , From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: Subject: Re: Newsyslog problem using Apache 2.2.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 00:31:00 -0000 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