[arch-general] Best way to adjust cron.daily or updatedb execution time? (root's crontab?)
Guys, What is the best way to set the cron.daily items to run at 3 am. Currently they run at 3 pm which is a pain. I have checked the cron.daily entries and the other /etc/cron.x directories, but I can't find a time setting anywhere. I have checked man crond and crontab, but I didn't find a reference to setting the execution time globally for cron.daily stuff. I have added an entry to root's crontab: 0 3 * * * /root/cron/cron-daily Is this where this needs to go? -- David C. Rankin, J.D.,P.E.
On Wed, Feb 22, 2012 at 03:26:40PM -0600, David C. Rankin wrote:
Guys,
What is the best way to set the cron.daily items to run at 3 am. Currently they run at 3 pm which is a pain. I have checked the cron.daily entries and the other /etc/cron.x directories, but I can't find a time setting anywhere. I have checked man crond and crontab, but I didn't find a reference to setting the execution time globally for cron.daily stuff. I have added an entry to root's crontab:
0 3 * * * /root/cron/cron-daily
Is this where this needs to go?
-- David C. Rankin, J.D.,P.E.
Try two digit numbers: 00 03 * * * and is your directory /etc/cron-daily or /etc/cron.daily? t
On 02/22/2012 03:44 PM, rara8avis@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.
On Wed, Feb 22, 2012 at 05:53:32PM -0600, David C. Rankin wrote:
On 02/22/2012 03:44 PM, rara8avis@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. You say you have /etc/cron.daily but your last two lines call cron-daily
t
On Wed, Feb 22, 2012 at 03:26:40PM -0600, David C. Rankin wrote:
Guys,
What is the best way to set the cron.daily items to run at 3 am. Currently they run at 3 pm which is a pain. I have checked the cron.daily entries and the other /etc/cron.x directories, but I can't find a time setting anywhere. I have checked man crond and crontab, but I didn't find a reference to setting the execution time globally for cron.daily stuff. I have added an entry to root's crontab:
0 3 * * * /root/cron/cron-daily
Is this where this needs to go?
`man 5 anacrontab`.
-- David C. Rankin, J.D.,P.E.
On 02/22/2012 03:49 PM, Lukas Fleischer wrote:
`man 5 anacrontab`.
[17:51 providence:/home/david/tde/bld/trinity-tqtinterface] # man 5 anacrontab No manual entry for anacrontab in section 5 Bummer :) This box still has dcron on it. -- David C. Rankin, J.D.,P.E.
On Wed, Feb 22, 2012 at 05:54:49PM -0600, David C. Rankin wrote:
On 02/22/2012 03:49 PM, Lukas Fleischer wrote:
`man 5 anacrontab`.
[17:51 providence:/home/david/tde/bld/trinity-tqtinterface] # man 5 anacrontab No manual entry for anacrontab in section 5
Bummer :)
This box still has dcron on it.
This happens if you don't provide all the necessary information when starting a thread.
-- David C. Rankin, J.D.,P.E.
On 02/22/2012 06:01 PM, Lukas Fleischer wrote:
This happens if you don't provide all the necessary information when starting a thread.
Noted, I actually thought to do it but forgot to type it. (parentism) -- David C. Rankin, J.D.,P.E.
participants (4)
-
David C. Rankin
-
Lukas Fleischer
-
rara8avis@aol.com
-
Thanasis Georgiou