* Hylton Conacher (ZR1HPC)
Patrick Shanahan wrote:
man logrotate
This script has one of the better man files. It is specific and very descriptive and offers examples. Look thru the entries in the /etc/logrotate.d/ directory and read the man file. You will quickly find what you need to extend this service. 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.
The manual is more complete and a better reference than I am <grin>. You did not really ask specific questions and I would have to guess at your requirements.
One question already whilst reading the man pages, does logrotate have to be manually run or does it do its own thing with no setup from the user?
I tried:
linux:~ # logrotate -usage logrotate: bad argument -usage: unknown error
man logrotate says that it is normally run by a cron job. It is run on my 9.0 system automatically (I cannot find the cron entry) as installed, but I have added several log files that were not included; procmail, fetchmail, ...
How can I found out it has run recently without specifying a particular file because there is very little chance of me browsing /var/log/messages and looking for logrotate?
grep comes to mind. man logrotate says that the 'default state file' is /var/lib/logrotate/status. As you can see, every answer that I have given has come from the man file. The secret is looking for the information. I will be the first to admin that a great majority of the man files are next to worthless to someone who does not have some background, ie: college professor talking at graduate student level to an 8th grader. This is one of the biggest problems with the advance of linux. (And I consider myself a 3rd grader in linux schooling. I *did* graduate from High School, 1959). more questions, I will try to help. gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711