Sadly it has been 2 months since my post about the SSL renewal and LSWS failing to restart. Despite running these commands
Code:
/usr/local/lsws/bin/lswsctrl stop >/dev/null
systemctl stop lsws >/dev/null
systemctl start lsws >/dev/null
And ensuring my certbot cron is
Code:
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --deploy-hook "systemctl restart lsws"
Litespeed again failed to restart after the cert was updated.
Is there anything else I can try. I have another LSWS DigitalOcean droplet running the same setup which also had the same issue, also ran the commands on that one but it is due for renewal in Jan. Keen to prevent this happening again on both.