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.

DNSonly cronjobs overwritten

Discussion in 'Bind / DNS / Nameserver Issues' started by HostedPro, Aug 17, 2012.

  1. HostedPro

    HostedPro Member

    Joined:
    Sep 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Texas
    cPanel Access Level:
    Root Administrator
    I'm running a couple DNSonly machines and one of them has the root cronjobs overwritten daily.

    I'll setup the two setup with crons like this
    Code:
    2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    19 21 * * * /usr/local/cpanel/scripts/upcp --cron
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    
    and the second machine's cron ends up looking like this
    Code:
    2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    31 4 * * 1 sleep $((RANDOM \% 7100)); /bin/nice -n +19 /usr/local/cpanel/scripts/upcp --cron --force
    0 1 * * * sleep $((RANDOM \% 6100)); /bin/nice -n +19 /usr/local/cpanel/scripts/cpbackup
    
    And the second machine fails to send email of the upcp cronjobs. It will email on security issues or process hangs & the like though.
    I've searched but haven't found an answer. If this has been covered please point me in the right direction.

    Thanks
    Karl
     
  2. HostedPro

    HostedPro Member

    Joined:
    Sep 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Texas
    cPanel Access Level:
    Root Administrator
    Figured it out, apparently crond was a little wonky. A daemon reinstall fixed...
     
  3. HostedPro

    HostedPro Member

    Joined:
    Sep 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Texas
    cPanel Access Level:
    Root Administrator
    Well, I spoke too soon. It was working OK for a few days then it started again. The root cron is overwritten as

    Code:
    2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    31 4 * * 1 sleep $((RANDOM \% 7100)); /bin/nice -n +19 /usr/local/cpanel/scripts/upcp --cron --force
    0 1 * * * sleep $((RANDOM \% 6100)); /bin/nice -n +19 /usr/local/cpanel/scripts/cpbackup
    
    no matter what I change it to.

    Any help with this?

    Thanks!
     
  4. HostedPro

    HostedPro Member

    Joined:
    Sep 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Texas
    cPanel Access Level:
    Root Administrator
    A little help anyone??
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. HostedPro

    HostedPro Member

    Joined:
    Sep 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Texas
    cPanel Access Level:
    Root Administrator
    Thanks, just done
     
Loading...

Share This Page