Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!news.apfel.de!univ-lyon1.fr!in2p3.fr!oleane!weld.news.pipex.net!pipex!burn.news.pipex.net!pipex!hose.news.pipex.net!pipex!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Newsyslog not rotating logs properly
Date: 17 Jun 1997 09:50:17 GMT
Organization: Awfulhak Ltd.
Lines: 35
Message-ID: <5o5mkp$bmt@ui-gate.utell.co.uk>
References: <33a5d46b.196968677@news.crosslink.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43026
In article <33a5d46b.196968677@news.crosslink.net>,
sgregory@crosslink.net (Scott Gregory) writes:
> I am trying to get newsyslog to rotate my logs but it is not doing the
> rotation as scheduled. I am running 2.2.2-RELEASE. Here is my
> newsyslog.conf:
>
[.....]
>
> All the preset rotations work fine. All the ones that I added that
> are supposed to be rotated every 24 hours (sshd_refused and
> tcp_refused) seem to get rotated twice a day. I have removed all the
> old files hoping that it was just getting caught on an old time stamp
> but it didn't seem to matter.
>
> Any ideas?
You may want to change your crontab entry to "newsyslog -v >myfile"
to find out why it's necessary to rotate them.
> Also, I looked at the man page for newsyslog and couldn't find
> anything on whether you could set it up to rotate on every xK or x
> hours, which ever was first. Before I try it has anyone already tried
> and suceeded/failed?
Setting a max size and a max time will rotate when either is hit.
> Thanks in advance,
>
> Scott
>
--
Brian <brian@awfulhak.org> <brian@freebsd.org>
<http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !