From owner-freebsd-questions Sun Aug 18 4:25:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7AAF37B400 for ; Sun, 18 Aug 2002 04:25:20 -0700 (PDT) Received: from nemesis.systems.pipex.net (nemesis.systems.pipex.net [62.241.160.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B3FF43E6E for ; Sun, 18 Aug 2002 04:25:20 -0700 (PDT) (envelope-from stacey@Demon.vickiandstacey.com) Received: from Demon (81-86-129-77.dsl.pipex.com [81.86.129.77]) by nemesis.systems.pipex.net (Postfix) with ESMTP id 4E70A32FF6; Sun, 18 Aug 2002 11:49:42 +0100 (BST) Subject: Re: How to add service to log in newsyslog.conf? From: Stacey Roberts Reply-To: sroberts@dsl.pipex.com To: Matthew Seaman Cc: sroberts@dsl.pipex.com, FreeBSD Questions In-Reply-To: <20020818110909.GC2079@happy-idiot-talk.infracaninophi> References: <1029631750.38776.229.camel@Demon.vickiandstacey.com> <20020818110909.GC2079@happy-idiot-talk.infracaninophi> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HB0qlpvyvid5MsfiBbGD" X-Mailer: Ximian Evolution 1.0.8 Date: 18 Aug 2002 12:25:14 +0100 Message-Id: <1029669916.5163.5.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 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 --=-HB0qlpvyvid5MsfiBbGD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Matthew, I went with this in the end: /var/log/ftpd 640 5 100 * Z I basically went with a copy of the format that /var/log/messages had. I wasn't sure about the PID column and how to use it, didn't mean to waste anyone's time here. Stacey On Sun, 2002-08-18 at 12:09, Matthew Seaman wrote: > On Sun, Aug 18, 2002 at 01:49:08AM +0100, Stacey Roberts wrote: >=20 > > Its all working fine, but I would like to have newsyslog manage to log > > files generated (define rotation schedule, log-size limitation, etc). > > Could someone please advise me on doing this? >=20 > Err... You just add more lines to /etc/newsyslog.conf --- the > newsyslog(1) man page explains the syntax quite clearly. So, to cycle > the ftpd log every Friday at 5.00pm, and keep the previous 4 old > logfiles compressed with gzip(1) (ie. ftpd.0.gz, ftpd.1.gz, ftpd.2.gz > ftpd.3.gz) add a line: >=20 > /var/log/ftpd 644 3 * $W5D17 Z >=20 > That's all there is to it. >=20 > Cheers, >=20 > Matthew >=20 > --=20 > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > Tel: +44 1628 476614 Marlow > Fax: +44 0870 0522645 Bucks., SL7 1TH UK >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --=20 Stacey Roberts B.Sc (HONS) Computer Science --=-HB0qlpvyvid5MsfiBbGD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUAPV+EGJvQeubckvvXAQEDWQf/ci6gFj2klKvpIVuERHARFDFPdGPDPmPn IOri11kpkgsJ6bPpWcKrPFb5RVub05JZ14I6o7aM6CBpyuUlPFWcrBT21jd9r83R 3pIIc7KEiHSWnlIxZX15O5jOliX/HhBSsnlJ5i28OZ9/EvnU12eFigezF9AB+PHn iMuOJUtYEPIJcUpbd25LCjvlo3wrGDjrCULo78E/JOVs/58jK05Mazr0Uolpx7FN mpS0MVu/RSoNXgNs1+9Sr0rSsYtLmJQfR83CQR7mNiTjLrOgPWzO8WBDWpXaEDGz jbArlFOBRrSfo/X1eu/PiE5ErXMHSkCQzee0QZiXkTRCiqHEn4IibQ== =oMXf -----END PGP SIGNATURE----- --=-HB0qlpvyvid5MsfiBbGD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message