LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-22-2006, 01:29 PM   #1
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Rep: Reputation: 15
Logrotate debian unstable


Hello,

I have recently (one month ago) installed debian unstable on my new machine. I think logrotation is not really working, /var/log/messages and /var/log/kern.log are 8 MB already and haven't been rotated once.

Am I correct that debian should have, for each logfile to rotate, something in /etc/logrotate.d/ ?
Since /etc/logrotate.conf has

# packages drop log rotation information into this directory
include /etc/logrotate.d

These files are in my /etc/logrotate.d:
aptitude base-config cupsys dpkg exim4-base ppp

But none of them mention /var/log/messages or kern.log
On my other machine (installed about 8 months ago, debian unstable), where weekly rotation is working, I don't find any differences.

Anyone knows where the logrotate scripts are?

Thanks in advance!
 
Old 09-23-2006, 07:42 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Read the logrotate man page. It tells you how to configure logrotate.
 
Old 09-23-2006, 08:30 AM   #3
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver
Read the logrotate man page. It tells you how to configure logrotate.
I know how to set up logrotate. But I don't want to set it up manually because probably the debian installer has already set something up to rotate my log files, and I don't want to make a mess. So I want to find why logrotation is working on one system but not on the other.
In the mean time I have found out (check /usr/share/doc/logrotate) that syslogd uses its own script to rotate logs (i.e. NOT logrotate). Two scripts can be found in /etc/cron.daily and /etc/cron.weekly, but again the scripts on my two systems are identical.
I think there is a problem with cron, but I'll have to take some time to check that.

I'll post the solution if I find one...
'man cron'
 
Old 09-23-2006, 12:15 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
If the machine is shutoff at about 6:30am local time IIRC then the proper cron jobs will not be run you would need to have the anacron package installed then this will check if the jobs have been run on next boot if not it will run them.
 
Old 09-24-2006, 10:25 AM   #5
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Original Poster
Rep: Reputation: 15
Thank you HappyTux!

Installing anacron solved the problem. My other system (where logrotation was working) is always on, but this system is off at night.

another happy penguin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to let the Debian unstable mirto Debian 2 01-22-2006 11:15 PM
debian testing/unstable nistelrooy Debian 2 10-31-2005 09:34 AM
is ubuntu unstable less unstable than debian unstable? lefty.crupps Ubuntu 9 10-14-2005 01:38 PM
Debian is unstable NoviceW Debian 8 01-28-2004 06:25 AM
Progeny Debian Upgrade to Debian Unstable? mrmdls Debian 1 09-25-2003 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration