If LSWS/OLS was started by
/usr/local/lsws/bin/lswsctrl start
which is outside of systemd service control, in this case it will report as failed.
you need to make sure all your OLS command was done by `systemctl start/stop/restart lsws` and do not involve `/usr/local/lsws/bin/lswsctrl start/stop/restart`
you can do a check , logic as this :
if systemctl show -p SubState lsws | grep failed ; then
/usr/lcoal/lsws/bin/lswsctrl stop
systemctl stop lsws
systemctl start lsws
fi