Date: Sun, 3 Mar 2002 23:38:12 -0500 From: "alexus" <ml@db.nexgen.com> To: "Jonathan Chen" <jonc@chen.org.nz> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: newsyslog/rotatelog Message-ID: <002501c1c336$64cecf90$0100a8c0@alexus> References: <001301c1c30e$d4006a40$faa0b542@noc> <20020304162808.B74621@grimoire.chen.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
can i put include? i dont really want to put all my list of domains in /etc/newsyslog.conf ? ----- Original Message ----- From: "Jonathan Chen" <jonc@chen.org.nz> To: "alexus" <ml@db.nexgen.com> Cc: <freebsd-questions@FreeBSD.ORG> 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 <jonc@chen.org.nz> > ---------------------------------------------------------------------- > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c1c336$64cecf90$0100a8c0>