From owner-freebsd-questions Mon Mar 4 12:21: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (adsl-210.54.19.51.quicksilver.net.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id E11A837B442 for ; Mon, 4 Mar 2002 12:20:42 -0800 (PST) Received: (from jonc@localhost) by chen.org.nz (8.11.6/8.11.6) id g24KKXn78186; Tue, 5 Mar 2002 09:20:33 +1300 (NZDT) (envelope-from jonc) Date: Tue, 5 Mar 2002 09:20:33 +1300 From: Jonathan Chen To: Vivek Khera Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newsyslog/rotatelog Message-ID: <20020305092033.A78161@grimoire.chen.org.nz> References: <001301c1c30e$d4006a40$faa0b542@noc> <20020304162808.B74621@grimoire.chen.org.nz> <200203041930.g24JUn317037@onceler.kciLink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200203041930.g24JUn317037@onceler.kciLink.com>; from khera@kcilink.com on Mon, Mar 04, 2002 at 02:30:49PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 04, 2002 at 02:30:49PM -0500, Vivek Khera wrote: > >>>>> "JC" == Jonathan Chen writes: > > JC> It is possible to use newsyslog for what you're doing, have something > JC> like: > > JC> /var/log/httpd-access.log 644 5 * $W6D0 Z > JC> /var/log/httpd-error.log 644 5 * $W6D0 Z /var/run/http.pid > > JC> You only need the http.pid entry on the last line so that newsyslog > JC> will only send the HUP once to apache once the logs have been rotated. > > Where is this documented in newsyslog? In the source code. It works its way down the file. -- Jonathan Chen Once is dumb luck. Twice is coincidence. Three times and Somebody Is Trying To Tell You Something. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message