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.

Where can I find docs on the different cpanel cron jobs?

Discussion in 'Workarounds and Optimization' started by electric, Sep 23, 2012.

  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Hello,

    I am trying to "optimize" the cron jobs for one of my servers, because there is very high load during some times due to high iowait. (Disk utilization is maxed out.)

    Where can I find documentation on each of the various scripts listed in cron?

    Specifically, I would like to know what each job does ... and then I can determine if it would be helpful to "wrap" it with the cpanel cpuwatch utility and when to schedule it.

    Here is what my cron looks like now:

    Code:
    10,25,40,55 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    54 23 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    0 1 * * * /bin/rm -f /usr/local/apache/domlogs/*.1 1>/dev/null 2>/dev/null
    58 5 * * * /usr/bin/freshclam --quiet --no-warnings
    */5 * * * * perl /root/rvadmin/rvmultiupdate.pl >/dev/null 2>&1
    10 7 * * 0 /usr/local/ysa/bin/rvsite_update &>/dev/null
    30 */4 * * * /usr/local/cpanel/bin/cpuwatch 4.0 /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
    45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cpanel/bin/optimizefs
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    0 5 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php &>/dev/null
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
    15 */6 * * * /usr/local/cpanel/scripts/recoverymgmt >/dev/null 2>&1
    30 2 * * * /usr/bin/perl /root/rvadmin/auto_rvskin.pl > /dev/null 2>&1
    27 * * * * /sbin/clock -w &>/dev/null
    57 * * * * /usr/sbin/ntpdate -b -s 130.159.62.4 128.100.102.201 ntp.nasa.gov &>/dev/null
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    0 0,4,8,12,16,20 * * * /usr/local/nagios/libexec/dnsblack_cron
    */30 * * * * /usr/local/nagios/libexec/rempuppetdlock_cron
    */59 * * * * /scripts/apache_badmod.sh
    */30 * * * * /scripts/rem_puppetd_lock
    */59 * * * * /scripts/sshd_bin_check_cron.sh
    */10 * * * * /scripts/renice_procs.sh > /dev/null 2>&1
    10 0 * * * /scripts/csf_restart_cron.sh > /dev/null 2>&1
    11 10 * * * /usr/local/cpanel/scripts/upcp --cron
    15 1 * * * /usr/local/cpanel/scripts/cpbackup
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    40 6 * * * /usr/local/cpanel/bin/cpuwatch 4.0 /usr/local/maldetect/maldet -b -r /home?/?/public_html 2 >> /dev/null 2>&1 
    20 7 * * * /usr/local/cpanel/bin/cpuwatch 4.0 /usr/local/maldetect/maldet --update
    */15 * * * * /usr/local/cpanel/bin/cpuwatch 4.0 /usr/local/maldetect/maldet --mkpubpaths >> /dev/null 2>&1
    8 5 * * * /usr/local/cpanel/bin/cpuwatch 4.0 /usr/bin/mysqlcheck -r eximstats &>/dev/null
     
  2. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I don't think any such documentation exists. You can determine what each cron does by looking at cron command. If you have to find out what causes load on the server, you can check out what cron runs during load spike. Most of time I have found that statistics update always causes load.
     
  3. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Which job is the stats update?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    A bunch of the crons you've listed aren't ones cPanel provides but ones added manually such as the nagios one being for nagios.

    As for the Daily Process Log update, that's this one:

    Code:
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    I'm uncertain otherwise if you mean cpanellogd, which doesn't run by cron. It's a service daemon. You could change or block out when it runs for stats in WHM > Statistics Software Configuration area.
     

Share This Page