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

Re: newsyslog and log rotation



In message <5.1.0.10.2.20010315121220.00afb740@mail.overland.net>
	so spake Todd Jagger (tj.lists):

> How does it know when it rotated a certain log file last and when to do 
> it again?  For example if I have a log I want to rotate every 24 hours 
> and I put the entry in the conf file at 10:30am, then when newsyslog 
> runs at 11am (from root's crontab) does it just look at the file and 
> then say, "I'm going to rotate that log in 24 hours." ?   If so, where 
> does it store that information?

It figures it out based on the timestamp of the last rotated version
of the file.

 - todd