Want to subscribe to topics you're interested in?
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

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    9:19 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    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

    31,021
    6,924
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,430
    Local Time:
    11:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
    
     
    • Informative Informative x 1
  3. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    9:19 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    @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

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    9:19 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    @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 New Member

    17
    8
    3
    Jul 22, 2017
    Ratings:
    +11
    Local Time:
    2:19 AM
    If you are root, simply
    # crontab -e
     
    • Agree Agree x 1
  6. eva2000

    eva2000 Administrator Staff Member

    31,021
    6,924
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,430
    Local Time:
    11:19 AM
    Nginx 1.13.x
    MariaDB 5.5