Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cron error unlinking cron.hourly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sbyrne
n00b
n00b


Joined: 12 Jun 2002
Posts: 8
Location: Rochester, NY

PostPosted: Tue Jun 25, 2002 1:53 am    Post subject: cron error unlinking cron.hourly Reply with quote

Ever few hours, not every hour, I get an email to root:

Subject: cron: test -x /usr/sbin/run-crons && /usr/sbin/run-crons
Date: Mon, June 24, 2002 20:00
To: root

rm: cannot unlink `/var/spool/cron/lastrun/cron.hourly': No such file or directory


Whats the problem?
Back to top
View user's profile Send private message
Slurp53
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 255
Location: Iowa

PostPosted: Fri Jul 05, 2002 11:19 pm    Post subject: Reply with quote

There is a man page for the test command, check that out.

Quote:
test -x /usr/sbin/run-crons && /usr/sbin/run-crons


That line come from the /etc/crontab file, check that out.

I think your /etc/cron.hourly folder has gotten deleted some how. Try recreating it with the same permissions as the /etc/cron.daily folder. Mine is empty.

Good luck
_________________
"Welcome to the Pleasuredome" -- Frankie Goes to Hollywood
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 200

PostPosted: Sat Jul 06, 2002 4:48 pm    Post subject: Reply with quote

I get this too. It's not that /etc/cron.hourly is missing.

It's /var/spool/cron/lastrun/cron.hourly that's missing. Could be the file isn't being created and cron isn't bothering to check if it exists before attempting to delete it, or maybe it's being deleted twice.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum