auto restart litespeed

#1
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
thanks
 

NiteWave

Administrator
#2
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
 

webizen

Well-Known Member
#4
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.
 
Top