Welcome to Centmin Mod Community
Register Now

Sysadmin nprestart edit

Discussion in 'System Administration' started by ahmed, May 6, 2017.

  1. ahmed

    ahmed Member

    238
    17
    18
    Feb 21, 2017
    Ratings:
    +24
    Local Time:
    5:16 AM
    Hello

    How to edit the nprestart command? I need to add service varnish restart to it


    thanks
     
  2. ahmed

    ahmed Member

    238
    17
    18
    Feb 21, 2017
    Ratings:
    +24
    Local Time:
    5:16 AM
    for example in a cron when the wpautoapted process a WordPress upgrade,etc
     
  3. eva2000

    eva2000 Administrator Staff Member

    36,055
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    1:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you can edit /usr/bin/nprestart command file or copy and create your own
    Code (Text):
    cp -a /usr/bin/nprestart /usr/bin/vnprestart

    then edit /usr/bin/vnprestart
     
    • Useful Useful x 2
  4. ahmed

    ahmed Member

    238
    17
    18
    Feb 21, 2017
    Ratings:
    +24
    Local Time:
    5:16 AM
    Great, is it wise to put these commands where the cronjob, auto-update wordpress so that any cached old versions of WordPress and or wordpress plugins get a fresh version?

    -also is there any way to autocurl the website to re-generate the cache after purging?


    best.
     
  5. eva2000

    eva2000 Administrator Staff Member

    36,055
    7,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,192
    Local Time:
    1:16 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    centmin.sh menu option 22 generated wordpress install's auto update cronjob already has nprestart command :)
     
    • Like Like x 1
..