LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2004, 10:39 PM   #1
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 1
Logrotate script is running even if my m/c is not on at 4.02


I have some questions about the daily scripts that are executed by cron.
The /etc/cron.daily contains a script logrotate which is executed daily at 4.02. By my machine is never switched on at that time, but still log files are getting rotated. For eg., /var/log/messages is to be rotated weekly. I think it is getting rotated on every monday at around 9.30 am though according to system crontab /etc/crontab, logrotate should be executed only at 4.02.

Another daily cronjob, tmpwatch seems to be working fine. I don't think it is getting executed as i have files in my /tmp directory from Aug 2003.
 
Old 02-25-2004, 02:23 AM   #2
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
check if you have anacron running. if so, it runs your cron jobs when you switch your machine on.
 
Old 02-25-2004, 06:17 AM   #3
vmniza
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 1
Thanks jib2. This info was really helpful
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate shell script help with existing script sridhar11 Debian 7 11-04-2005 04:11 AM
Running a script at a certain time... Slith(++1) Programming 3 10-04-2005 10:12 PM
Running a script spacemonk Linux - Newbie 4 07-30-2004 04:02 AM
Running a script before KDM TChris Linux - General 0 02-17-2004 05:14 AM
Question on running a script zael Programming 1 09-30-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:16 AM.

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