Discover Centmin Mod today
Register Now

Sysadmin crontab issues, may have cleared everything

Discussion in 'System Administration' started by SFLC, Dec 15, 2016.

  1. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    1:59 AM
    1
    10
    Hello I accidentally ran the command

    crontab /etc/crontab

    and it looks like it may have cleared all my cron jobs, last I remember there was a few as I was running wordpress, I disabled a wordpress autoupdate one and there was another one related to wordpress.

    Is there anyway to get it back and also is there any cron jobs for centmin that may have been cleared as well :(
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    9:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    ouch.. probably need to reset them up again

    did you use addons/acmetool.sh letsencrypt ssl certs too ?

    for that one you can just run SSH command below to update underlying acme.sh client which will re-add cronjob if missing
    Code (Text):
    /usr/local/src/centminmod/addons/acmetool.sh acmeupdate


    FYI, the default 2 cronjobs for 123.09beta01 are
    Code (Text):
    11 */23 * * * /usr/local/src/centminmod/tools/autoprotect.sh 2>/dev/null
    0 */4 * * * /usr/bin/cminfo_updater 2>/dev/null
    
     
  3. SFLC

    SFLC Active Member

    224
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    1:59 AM
    1
    10
    thanks i ran the update to newest beta release and the acme update as you mentioned, then added the wp-cron one,

    i think im good now, i have the log of all crons run for the last few days so ill look through that and see if im missing anything, thanks
     
    • Like Like x 1