From owner-freebsd-questions Sun Mar 3 20:37:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from db.nexgen.com (db.nexgen.com [66.92.98.149]) by hub.freebsd.org (Postfix) with SMTP id 2512837B402 for ; Sun, 3 Mar 2002 20:37:55 -0800 (PST) Received: (qmail 23508 invoked from network); 4 Mar 2002 04:39:35 -0000 Received: from localhost.nexgen.com (HELO alexus) (root@127.0.0.1) by localhost.nexgen.com with SMTP; 4 Mar 2002 04:39:35 -0000 Message-ID: <002501c1c336$64cecf90$0100a8c0@alexus> From: "alexus" To: "Jonathan Chen" Cc: References: <001301c1c30e$d4006a40$faa0b542@noc> <20020304162808.B74621@grimoire.chen.org.nz> Subject: Re: newsyslog/rotatelog Date: Sun, 3 Mar 2002 23:38:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 can i put include? i dont really want to put all my list of domains in /etc/newsyslog.conf ? ----- Original Message ----- From: "Jonathan Chen" To: "alexus" Cc: Sent: Sunday, March 03, 2002 10:28 PM Subject: Re: newsyslog/rotatelog > On Sun, Mar 03, 2002 at 06:54:58PM -0500, alexus wrote: > > [...] > > i was thinkin to use newsyslog for that.. is it good idea? or there are some > > other tools for that? > > can i put "include /etc/apache-log-rotate.conf" into newsyslog.conf so i > > dont have to edit it every time? > > It is possible to use newsyslog for what you're doing, have something > like: > > /var/log/httpd-access.log 644 5 * $W6D0 Z > /var/log/httpd-error.log 644 5 * $W6D0 Z /var/run/http.pid > > You only need the http.pid entry on the last line so that newsyslog > will only send the HUP once to apache once the logs have been rotated. > -- > Jonathan Chen > ---------------------------------------------------------------------- > Do not take life too seriously. > You will never get out of it alive. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message