auto restart litespeed

Discussion in 'General' started by m-mehdipoor, May 22, 2013.

  1. m-mehdipoor

    m-mehdipoor Member

    Hi all ,
    I want to know is it possible to set the litespeed auto restart every 5 minutes?
    I use sata hdd and because of low I / O of such these HDDs the server get slow and when I restart the litespeed it is good for several minutes !
    by know I want to set it restart automatically every 5 minutes
  2. NiteWave

    NiteWave Administrator

    it's a bad idea to restart a web server every 5 minutes --- just what most admin try to avoid. anyway you can do it by cronjob.
    you can add a entry to /etc/crontab:

    */5 * * * * root /usr/local/lsws/bin/lswsctrl restart
  3. m-mehdipoor

    m-mehdipoor Member

    Hello ,
    I know but it seems it's the only choice now to avoid being down !
  4. webizen

    webizen Well-Known Member

    run 'top -c' to see which process consumes cpu cycles the most when it is slow. check error log (/usr/local/lsws/logs/error.log for standalone LSWS or /usr/local/apache/logs/error_log for cpanel) and see anything around the slow time.

Share This Page