From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 08:08:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B24D0106568F for ; Fri, 3 Oct 2008 08:08:54 +0000 (UTC) (envelope-from D.Forsyth@ru.ac.za) Received: from c.mail.ru.ac.za (c.mail.ru.ac.za [IPv6:2001:4200:1010::25:3]) by mx1.freebsd.org (Postfix) with ESMTP id EA8ED8FC1C for ; Fri, 3 Oct 2008 08:08:53 +0000 (UTC) (envelope-from D.Forsyth@ru.ac.za) Received: from iwr.ru.ac.za ([146.231.64.249]:57722) by c.mail.ru.ac.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KlfiV-0006is-UQ for freebsd-questions@freebsd.org; Fri, 03 Oct 2008 10:08:52 +0200 Received: from iwr61.iwr.ru.ac.za ([146.231.64.161]) by iwr.ru.ac.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KlfiV-000MvE-Su for freebsd-questions@freebsd.org; Fri, 03 Oct 2008 10:08:51 +0200 From: "DA Forsyth" Organization: IWR To: freebsd-questions@freebsd.org Date: Fri, 03 Oct 2008 10:08:52 +0200 MIME-Version: 1.0 Message-ID: <48E5EF34.13368.238F34B7@d.forsyth.ru.ac.za> Priority: normal In-reply-to: <20081002183522.7139710656DD@hub.freebsd.org> References: <20081002183522.7139710656DD@hub.freebsd.org> X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: c.mail.ru.ac.za (146.231.129.35) Subject: Re: newsyslog and apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: iwrTech@iwr.ru.ac.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2008 08:08:54 -0000 On 2 Oct 2008 , freebsd-questions-request@freebsd.org entreated about "freebsd-questions Digest, Vol 235, Issue 11": > No need to change log rotation software since the problem clearly is > somewhere else. You need to inspect Apache's error logs to see why it > cannot start. > the previous error log shows [Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing restart [Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error detected in the parent process the new error log shows, after the manual start [Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal operations those error messages are repeated any time I do a apachectl graceful However, doing apachectl stop apachectlstart works as expected. apache version is apache-2.0.63_2 from ports uname -a gives FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon Jun 2 13:10:26 SAST 2008 iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70 i386 php v4 is installed, though i do plan to upgrade that to V5 as soon as I get time to do it. PS: I used to use logrotate, but it too stopped working correctly, with apache process stopping in a similar way that is why I changed to newsyslog. I rotate the logs monthly, and set it to 8am so there is a chance I'll be on hand to start apache to minimize downtime. -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/