The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    16
    Location:
    Lewisville, Tx
    You can look in /var/spool/cron/root to see what time things run.
     
  3. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I think you'll find it here ;)

    /etc/cron.daily/slocate.cron
     
  5. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  7. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    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