Want to subscribe to topics you're interested in?
Become a Member

Sysadmin nprestart edit

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

  1. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    7:47 PM
    Hello

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


    thanks
     
  2. ahmed

    ahmed Member

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    7:47 PM
    for example in a cron when the wpautoapted process a WordPress upgrade,etc
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,029
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    3:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    201
    15
    18
    Feb 21, 2017
    Ratings:
    +21
    Local Time:
    7:47 PM
    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

    29,029
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    3:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    centmin.sh menu option 22 generated wordpress install's auto update cronjob already has nprestart command :)
     
    • Like Like x 1