Skip site navigation (1)Skip section navigation (2)
Date:      18 Aug 2002 12:25:14 +0100
From:      Stacey Roberts <stacey@Demon.vickiandstacey.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        sroberts@dsl.pipex.com, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to add service to log in newsyslog.conf?
Message-ID:  <1029669916.5163.5.camel@Demon.vickiandstacey.com>
In-Reply-To: <20020818110909.GC2079@happy-idiot-talk.infracaninophi>
References:  <1029631750.38776.229.camel@Demon.vickiandstacey.com>  <20020818110909.GC2079@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1029669916.5163.5.camel>