[arch-general] Best way to adjust cron.daily or updatedb execution time? (root's crontab?)
David C. Rankin
drankinatty at suddenlinkmail.com
Wed Feb 22 18:53:32 EST 2012
On 02/22/2012 03:44 PM, rara8avis at aol.com wrote:
> Try two digit numbers: 00 03 * * * and is your directory /etc/cron-daily or
> /etc/cron.daily?
>
it's dcron, and on my box the updatedb file is in cron.daily:
17:48 providence:~/tde/bld/trinity-tqtinterface> l /etc/cron.daily/
total 36
drwxr-xr-x 2 root root 4096 Feb 21 09:31 .
drwxr-xr-x 111 root root 12288 Feb 22 15:13 ..
-rwxr--r-- 1 root root 51 Sep 28 01:01 logrotate
-rwxr--r-- 1 root root 807 Mar 8 2010 man-db
-rwxr--r-- 1 root root 115 Feb 8 07:20 pkgfile
-rwxr--r-- 1 root root 96 Dec 3 19:14 shadow
-rwxr--r-- 1 root root 654 Mar 26 2010 updatedb
The root crontab file I have has the following ID definitions:
<quote>
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>
# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthly
# DCR specific root crontabs from '/root/cron/<filename>
0 5 1 * * /root/cron/cron-monthly
0 3 * * * /root/cron/cron-daily
</quote>
I haven't messed with the file other than to add the last two lines. Do I need
to change the ID lines as well?
--
David C. Rankin, J.D.,P.E.
More information about the arch-general
mailing list