l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2005 Mar 02 13:36

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] /var/log/messages Mystery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] /var/log/messages Mystery

Because I don't have my computer on for 24 hours a day, I always 
modify /etc/crontab to fire at a time when I will likely be on my computer.  
So in my Debian partition crontab fires during the 8:00 pm hour, and in my 
SuSE partition crontab fires during the 9:00 pm hour.

Since I've had SuSE 9.2, /var/log/messages has not been rotated or deleted 
once.  But in Debian, /var/log/messages has been rotated a couple of times 
since I modified /etc/crontab.  My old SuSE 9.0, and my old Mandrake systems 
also rotated /var/log messages after I changed /etc/crontab.  But SuSE 9.2 is 
not rotating.

According to the SuSE 9.2 Administration Guide "logrotate is controlled 
through cron and is called daily by /etc/cron.daily/."  After reading *man 
logrotate* I put the following into /etc/logrotate.conf:

/var/log/messages {
    rotate 5
               /sbin/killall -HUP syslogd

But this has not resulted in /var/log/messages being rotated or deleted.  And 
I notice that in my Debian system there is no reference to /var/log/messages 
in /etc/logrotate.conf.  So I have concluded that /var/log/messages (at least 
in Debian) is controlled by something other than /etc/logrotate.conf.

So can anybody tell me how to get SuSE to rotate or delete /var/log/messages?

I realize that I can always use "bobcron" or "dummycron."  Here's how bobcron 
works:  "rm messages."  But I'd like to get this system to work the way it's 
supposed to.

Thank you.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.