Welcome to Centmin Mod Community
Become a Member

Prevent scripts from running

Discussion in 'Other Centmin Mod Installed software' started by Jon Snow, Nov 8, 2017.

  1. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    9:58 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Is there a list of all the scripts that run by default after setting up CMM? How would one go about disabling specific scripts from running? For example, autoprotect.sh.

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,915
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    There's isn't a list of reports but for autoprotect.sh just commenting out the cronjob and include file in your nginx vhost should disable it. So from Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community

    comment out cronjob with hash # in front
    Code (Text):
    #0 */4 * * * /usr/local/src/centminmod/tools/autoprotect.sh
    

    and nginx vhost include file comment out with hash # in front
    Code (Text):
    #include /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf;
    

    then restart nginx server
    Code (Text):
    ngxrestart
    
     
  3. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    9:58 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    @eva2000 I couldn't find :
    Code (Text):
    #0 */4 * * * /usr/local/src/centminmod/tools/autoprotect.sh

    But I've done the other part.
     
  4. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    9:58 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    @eva2000 I couldn't find :
    Code (Text):
    #0 */4 * * * /usr/local/src/centminmod/tools/autoprotect.sh

    But I've done the other part.
     
  5. wmtech

    wmtech Active Member

    187
    44
    28
    Jul 22, 2017
    Ratings:
    +139
    Local Time:
    2:58 AM
    If you are root, simply
    # crontab -e
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,915
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+