From owner-freebsd-questions@FreeBSD.ORG Thu Apr 15 10:26:34 2010 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 235DA1065672 for ; Thu, 15 Apr 2010 10:26:34 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from smtprelay-b11.telenor.se (smtprelay-b11.telenor.se [62.127.194.20]) by mx1.freebsd.org (Postfix) with ESMTP id CBC318FC0C for ; Thu, 15 Apr 2010 10:26:33 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id CA7DDEAEE5 for ; Thu, 15 Apr 2010 12:26:31 +0200 (CEST) X-SENDER-IP: [85.226.59.55] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AidJAFqGxktV4js3PGdsb2JhbACPcotvDAEBAQE1Lb4uhQ4E X-IronPort-AV: E=Sophos;i="4.52,211,1270418400"; d="scan'208";a="507893862" Received: from c-373be255.107-1-64736c10.cust.bredbandsbolaget.se (HELO gatekeeper.pp.dyndns.biz) ([85.226.59.55]) by ipb3.telenor.se with ESMTP; 15 Apr 2010 12:26:31 +0200 Received: from [192.168.69.67] (phobos [192.168.69.67]) by gatekeeper.pp.dyndns.biz (8.14.3/8.14.3) with ESMTP id o3FAQTsr059433 for ; Thu, 15 Apr 2010 12:26:29 +0200 (CEST) (envelope-from freebsd-questions@pp.dyndns.biz) Message-ID: <4BC6E9D5.7050702@pp.dyndns.biz> Date: Thu, 15 Apr 2010 12:26:29 +0200 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100306 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4BC6B286.16120.2714AA3@z.szalbot.lcwords.com> <4BC6E58E.12367.3389FE7@z.szalbot.lcwords.com> In-Reply-To: <4BC6E58E.12367.3389FE7@z.szalbot.lcwords.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Log rotation / newsyslog / apache not reloaded 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, 15 Apr 2010 10:26:34 -0000 On 2010-04-15 12:08, Zbigniew Szalbot wrote: > On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > >> Hello, >> >> I have the following lines in my /etc/newsyslog.conf >> >> /var/log/*-access.log 644 30 * @T00 JCG >> /var/log/*-error.log 644 30 * @T00 JCG > > I added /var/run/httpd.pid at the end of both lines and will see if > that helps. > > Zbigniew Szalbot > Alternatively you can use sysutils/cronolog which will eliminate the need to restart Apache entirely. Apache's configuration file allows you to pipe your logs to sysutils/cronolog (or any other external program) which in turn can be configured to split the logs almost any way you like. This is very convenient, especially if you run many vhosts which normally will turn nywsyslog.conf into a mess. The man page explains it in detail. http://cronolog.org/download/cronolog.pdf Regards Morgan