Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 18, 2011 6:40 pm 
Offline
Senior Newbie

Joined: Wed Aug 10, 2011 10:06 pm
Posts: 12
Website: http://helpher.net
EDIT>>> found this. Does everyone get these 17th minute of the hour cron entries.

"That's easy, the 17th minute one is just cron.hourly firing off. Even if it's empty (I just realized this), cron will still log in /var/log/auth.log even if there was nothing to do, because it still did fire off."

http://ubuntuforums.org/showthread.php?t=905193


I was looking in auth.log and noticed that cron has been doing something every hour but when I look at etc/cron/hourly there is nothing but a placeholder.

I installed cron-apt to do daily updates which runs as expected once per day.

Any ideas what is happening?

edit. in /etc/cron.d there is just 2 files .placeholder and cron-apt (which says to run once per day)

nothing in /var/spool/cron/crontabs

in /etc/cron.daily , there is listed

standard
passwd
ntp
mlocate
man-db
logrotate
exim4-base
dpkg
bsdmainutils
aptitude
apt.

I did install exim but nothing else .

_________________
helpher.net


Top
   
PostPosted: Sat Nov 19, 2011 12:32 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
On most Linux systems (including Ubuntu), cron uses run-parts to kick off hourly, daily, weekly, and monthly scripts. It simply looks at the directory it's given (/etc/cron.hourly in this case) and runs any* scripts in there. You can simply view these scripts to see what they do.

*Well, it won't run scripts that have anything other than letters, digits, underscores, or hyphens in their names.


Top
   
 Post subject:
PostPosted: Sat Nov 19, 2011 6:38 pm 
Offline
Senior Newbie

Joined: Wed Aug 10, 2011 10:06 pm
Posts: 12
Website: http://helpher.net
There actually is nothing in the hourly directory nor anything that should run every hour in any other of the directories I mentioned.

Was the explanation that I found which I posted in my edit a reasonable explanation. i.e cron is checking if there are any hourly jobs to do at 17mins past the hour?

_________________
helpher.net


Top
   
 Post subject:
PostPosted: Sat Nov 19, 2011 7:26 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
cron knows nothing about /etc/cron.hourly/ (or anything else); all it knows is that it needs to run run-parts every hour. And that's what it's doing. So yup, completely reasonable.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group