RE: wtmp won't rotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paula,

I have the following lines (CentOS 5 update 1):

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
        monthly
#       minsize 1M
        create 0664 root utmp
        rotate 1
}

and I commented out the minsize line to ensure that I got monthly rotation no matter what size the wtmp file was.

As this is essentially identical to Maarten's RHEL 4 file, I cannot see why it will not work.

Regards,
Alan.

> Date: Wed, 6 Feb 2008 14:09:48 -0800
> From: paula@xxxxxxxxxxx
> To: redhat-list@xxxxxxxxxx
> Subject: Re: wtmp won't rotate
> 
> Thank you Maarten.  We have tried this but I'll put in your exact syntax 
> in the logrotate.conf and
> see if that works.  Thanks again.
> Paula
> 
> Broekman, Maarten wrote:
> > Check your /etc/logrotate.conf file.  This is what mine says (rhel4) and
> > it works fine for me:
> >
> > /var/log/wtmp {
> >     monthly
> >     create 0664 root utmp
> >     rotate 1
> > }
> >
> >
> > I have a wtmp and wtmp.1 file in /var/log.  If you want more back
> > copies, just change the "rotate 1" to however many back versions you
> > want.
> >
> > Maarten Broekman


_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux