RE: Rotating wtmp



You should note that the command 'logrotate -f' will force immediate
rotation for all log files specified in logrotate configuration. If you
want to rotate only the /var/log/wtmp you should create logrotate
configuration file with the rules for rotation of wtmp file only and
then specify that configuration file on the command line for 'logrotate
-f'.
Of course, you can also "rotate" the wtmp file by copyung it manually.

Alexey Fadyushin
Brainbench MVP for Linux
http://www.brainbench.com

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
bounces@xxxxxxxxxx] On Behalf Of Serge Dubrouski
Sent: Thursday, June 29, 2006 2:16 AM
To: General Red Hat Linux discussion list
Subject: Re: Rotating wtmp

logrotate -f

man logrotate.

On 6/28/06, Poluri, Ramachandra Rao <rp230050@xxxxxxx> wrote:
Don't we have a command to do so..forcing rotation..

-Ramachandra.

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Serge Dubrouski
Sent: Wednesday, June 28, 2006 6:10 PM
To: General Red Hat Linux discussion list
Subject: Re: Rotating wtmp

cp /var/log/wtmp /var/log/wtmp.old
cp /dev/null /var/log/wtmp

if yopu don't want to make a copy.

On 6/28/06, Poluri, Ramachandra Rao <rp230050@xxxxxxx> wrote:
I want to force the rotation of wtmp right now..
How can we do it??

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Serge
Dubrouski
Sent: Wednesday, June 28, 2006 6:01 PM
To: General Red Hat Linux discussion list
Subject: Re: Rotating wtmp

/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}

in the /etc/logrotate.conf

On 6/28/06, Poluri, Ramachandra Rao <rp230050@xxxxxxx> wrote:
Frnds..

How do we rotate /var/log/wtmp ?

Thanks in advance,
-Ramachandra.
--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subjectunsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Logrotate appends extra numbers to logfiles
    ... The sysadmin who set this up is a Windows admin, ... you are in the Mandriva runaway logrotate hell. ... 16 and after less than a month the inode tables were exhausted. ... That means rotate syslog, syslog.1, syslog.1.1 ...
    (comp.os.linux.setup)
  • Re: Logrotate appends extra numbers to logfiles
    ... The sysadmin who set this up is a Windows admin, ... you are in the Mandriva runaway logrotate hell. ... 16 and after less than a month the inode tables were exhausted. ... That means rotate syslog, syslog.1, syslog.1.1 ...
    (comp.os.linux.setup)
  • Re: Logrotate appends extra numbers to logfiles
    ... you are in the Mandriva runaway logrotate hell. ... That means rotate syslog, syslog.1, syslog.1.1 ... They will suddenly run out of inodes. ... Logrotate takes virtually zero resources. ...
    (comp.os.linux.setup)
  • Re: logrotate - time to execute
    ... I want to rotate my mail log daily at 23:55. ... I do backups and it is setup so I could do incremental backups during ... and logrotate contains: ... # create new log files after rotating old ones ...
    (comp.os.linux.misc)
  • Re: logrotate and apache virtual domains
    ... Where/how do I get logrotate to rotate the virtual host logs? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)