OpenLitespeed Cronjob Query

sahostking

Verified User
Joined
Jan 29, 2021
Messages
110
Location
South Africa
Hi guys

Shouldn't the documentation of openlitespeed be a reload instead of restart?
Restart may randomly give errors on sites where as reload just reloads config without a restart?

*/3 * * * * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fi

should be

*/3 * * * * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl reload; fi

as per https://docs.directadmin.com/webservices/openlitespeed/general.html#how-to-install-openlitespeed
 
ok wait nevermind

/usr/local/lsws/bin/lswsctrl
Usage: /usr/local/lsws/bin/lswsctrl {start|stop|restart|reload|condrestrt|try-restart|status|help}

start - start web server
stop - stop web server
restart - gracefully restart web server with zero down time
reload - same as restart
condrestart - gracefully restart web server if server is running
try-restart - same as condrestart
fullrestart - do full stop then start
status - show service status
help - this screen


They state zero downtime. So will test this a bit after moving a few sites across.
 
Back
Top