Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[06-03-04 12:05]: Patrick Shanahan wrote:
man logrotate
I had a feeling you were going to say RTFM Patrick. Tnx I have already and will slowly work thru it. I just wondered if there was perhaps an easier way, perhaps using X, to do this on a SuSE 9.0 system.
How can I found out it has run recently...
.... is /var/lib/logrotate/status. THAT is the file I was looking for.It is actually /var/lib/logrotate.status
I assume this file, without having previously read the man page, is a listing of when each log file was last rotated? I think the man page is wrong giving /var/lib/logrotate/status as the status file when it is actually /var/lib/logrotate.status, or is there a misunderstanding on my part? You asked for more questions Patrick..... :) What happens to all the gzip'd log files, or do they just keep rolling over, keeping the same size but deleting the older log information? Would a maxage need to be put in each etc/logrotate.d file? I would assume that if I decide to add some of the options listed in the man page that all I need to do is add them into the /etc/logrotate.conf file to have them implemented on all the log files under logrotate.d control or do I need to add those options to each stanza of each file in /etc/logrotate? What to they mean removed, like deleted? Surely it should just continue to log and have the older entries trimmed from it? Can logrotate be instructed to do this type of logging via /etc/logrotate.conf? Can it be said that logrotate just snips and compresses logs? How does it do it ie how many lines/days of log entry are snipped from each log? -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================