From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 12:51:27 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 9B8C81065696 for ; Thu, 2 Oct 2008 12:51:27 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.189]) by mx1.freebsd.org (Postfix) with ESMTP id 537EF8FC1C for ; Thu, 2 Oct 2008 12:51:27 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so318673rne.12 for ; Thu, 02 Oct 2008 05:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=q1FsmOfIgoU8Z21ObNd0UXFivnqpJ5QI9gDXv7FSMb4=; b=CRvs9f4Cs7T7xxcvUNvMfH00fHn8YzsV0nwstWyCbZA4MrkPqCohXt28GQjESjLGh/ y5pLi6b3zksNfEfdQ615iscQs8lMhI2uuY6SvC7SrdfJ7lJHmUpflIOd8QqmIlOu9YUY QtEj8DvqkxfWHsJg26kOhsJIwQdXGbMrTBViI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BZ2OAsospSRJNjNqbc5sk0dvI/UQjEAjX8fbL1YlRDrDxJ90IoXfzzVnLhUzE28DK2 5uMEBkPIgjw9tXVahYQJWU7bW4bySnCkeNiNncEQBu9bq2GfqGJWPYyTN0nAsVe3W9Ff UXoPOfILw98SDSBwMRXv86ahjKaLBoM/EXy60= Received: by 10.151.42.21 with SMTP id u21mr3143202ybj.23.1222951886523; Thu, 02 Oct 2008 05:51:26 -0700 (PDT) Received: by 10.64.112.18 with HTTP; Thu, 2 Oct 2008 05:51:26 -0700 (PDT) Message-ID: <94136a2c0810020551r23e39e3fq6b3202d7ef7b71d6@mail.gmail.com> Date: Thu, 2 Oct 2008 14:51:26 +0200 From: "Zbigniew Szalbot" To: freebsd-questions@freebsd.org In-Reply-To: <20081002084811.6fe9a50d@scorpio> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> <20081002084811.6fe9a50d@scorpio> Subject: Re: newsyslog and apache 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: Thu, 02 Oct 2008 12:51:27 -0000 Hello, 2008/10/2 Jerry : > On Thu, 02 Oct 2008 14:20:50 +0200 > "DA Forsyth" wrote: > >>I used to have one big apache log file, but decided to rotate it once >>a month using newsyslog. >> >>However, now apache stops and does not restart when the log is >>rotated. >> >>line from newsyslog.conf >>/var/log/apache/httpd-access.log 640 13 * $M1D8 B >> /var/run/httpd.pid 30 >> >>with a similar one for the error log. >> >>I have to manually start apache after this rotates the log. >> >>I alos see that 'apachectl restart' stops apache but it doesn't >>restart. >> >>any ideas? > > > I use 'rotatelogs': 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. -- Zbigniew Szalbot