Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81222 - minor cronbase-0.3.1 race condition
Summary: minor cronbase-0.3.1 race condition
Status: RESOLVED DUPLICATE of bug 8506
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal minor
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-08 04:25 UTC by Tero Pelander
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
"find ... -exec rm {} \;" into "find ... -exec /bin/rm -f {} \;" (run-crons.diff,751 bytes, patch)
2005-02-08 04:28 UTC, Tero Pelander
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tero Pelander 2005-02-08 04:25:10 UTC
About 1-3 times each month I get following emails.

  Subject: Cron <root@aku> test -x /usr/sbin/run-crons && /usr/sbin/run-crons
  find: /var/spool/cron/lastrun/cron.hourly: No such file or directory

The reason is a race between rm in find command in run-crons and the rm commands in /etc/crontab.
Comment 1 Tero Pelander 2005-02-08 04:28:09 UTC
Created attachment 50720 [details, diff]
"find ... -exec rm {} \;" into "find ... -exec /bin/rm -f {} \;"
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-02-08 05:40:44 UTC
actually meant to fix this a long time ago, but completely forgot about it.  thanks for the reminder bug ;)  I'll get it fixed asap.

*** This bug has been marked as a duplicate of 8506 ***