Date: Tue, 5 Mar 2002 09:20:33 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Vivek Khera <khera@kcilink.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newsyslog/rotatelog Message-ID: <20020305092033.A78161@grimoire.chen.org.nz> In-Reply-To: <200203041930.g24JUn317037@onceler.kciLink.com>; from khera@kcilink.com on Mon, Mar 04, 2002 at 02:30:49PM -0500 References: <001301c1c30e$d4006a40$faa0b542@noc> <20020304162808.B74621@grimoire.chen.org.nz> <200203041930.g24JUn317037@onceler.kciLink.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 04, 2002 at 02:30:49PM -0500, Vivek Khera wrote: > >>>>> "JC" == Jonathan Chen <jonc@chen.org.nz> 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 <jonc@chen.org.nz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305092033.A78161>