Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Time when /usr/bin/updatedb runs?

Discussion in 'General Discussion' started by dendis, Jun 22, 2004.

  1. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    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!
     
  2. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Lewisville, Tx
    You can look in /var/spool/cron/root to see what time things run.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    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.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I think you'll find it here ;)

    /etc/cron.daily/slocate.cron
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    156
    Jonathan Thank you,


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

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    168
    That's a very useful tip.

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice