sahostking
Verified User
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
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