Summary: | sys-process/vixie-cron - two cron.daily runs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Will Briggs <will.briggs> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Will Briggs
2008-11-13 22:34:50 UTC
No, this is just a feature of sys-process/vixie-cron. /etc/crontab is the system's crontab and `crontab -u root -l` is root's crontab. If you have duplicate entries for running /etc/cron.daily in those two crontabs, then yes, you will see the scripts in /etc/cron.daily being run twice: /etc/crontab: 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily root's crontab: 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily (In reply to comment #1) > /etc/crontab: > 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily > root's crontab: > 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily I got those mixed up, sorry. The former is root's crontab and the latter is /etc/crontab (as explained in crontab(5)[URL], which notes that only the system crontab has a user field. :) |