Time when /usr/bin/updatedb runs?

dendis

Well-Known Member
Jul 18, 2003
49
0
156
I think there is cronjob set when /usr/bin/updatedb runs. So where to find that cron ? Also how to set time when it runs ? Now it runs on the time when server is most loaded so need to tweak it a lil bit.

So anyone knows where that cron file located ?

Thanks!
 

dendis

Well-Known Member
Jul 18, 2003
49
0
156
kris thank you for reply !

Here what I found on file:

44 4 * * * /usr/local/cpanel/3rdparty/interchange/bin/expireall -r

2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
57 1 * * * /scripts/upcp
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
0 6 * * * /scripts/cleanmsglog > /dev/null 2>&1
0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim callout > /dev/null 2>&1
0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim retry > /dev/null 2>&1
0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim reject > /dev/null 2>&1
0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim wait-remote_smtp > /dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1


Which is /usr/bin/updatedb here ? I know only it runs between 4-5 AM on server time.
 

dendis

Well-Known Member
Jul 18, 2003
49
0
156
Jonathan Thank you,


It is in cron.daily but why it runs on 4:00 AM ? It is possible to modify this time ?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
cron.daily traditionally runs at 04:00, those times (like cron.weekly, etc) are determined by the entries in:
/etc/crontab

Rather than change those, however, it might be best to move that script elsewhere (e.g. /root/) and then add it yourself to the root crontab (crontab -e) to run at a different time.
 

goodmove

Well-Known Member
May 12, 2003
643
4
168
Originally posted by chirpy
cron.daily traditionally runs at 04:00, those times (like cron.weekly, etc) are determined by the entries in:
/etc/crontab

Rather than change those, however, it might be best to move that script elsewhere (e.g. /root/) and then add it yourself to the root crontab (crontab -e) to run at a different time.
That's a very useful tip.

Do you know which cron determines the running times of the daily stats (webalizer, awstats, urchin)?