*BSD News Article 73216


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!news.tu-chemnitz.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Syslogd - buggy?
Date: 9 Jul 1996 07:01:41 GMT
Organization: Private BSD site, Dresden
Lines: 18
Message-ID: <4rt04l$4fl@uriah.heep.sax.de>
References: <DtzLHy.5wn@rci.ripco.com> <4rfdvk$jd6@twwells.com>
  <31DBF33D.DF@www.play-hookey.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

Ken Bigelow <kbigelow@www.play-hookey.com> wrote:

> If your scripts are correctly written for rotating logs, they will start 
> with the oldest log and do a "mv" to the next logfile in sequence, to the 
> point where the very oldest logfile gets erased. The sequence of mv 
> commands works backwards until the newest (current) logfile gets copied 
> to its first backup name. Check /etc/monthly and /etc/weekly for a 
> practical technique.

Btw., since it's a silly task to do this, it's now automated by
newsyslog(8).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)