Automatically restart services and get notified
October 16, 2024
So you are running your own webserver which at the times is short of resources and the services like MySQL and HTTPD stop – resulting in your website being down until you get a chance to fix it. A quick solution would be to implement a script that will restart the service automatically and get notified with an email that services were restarted – so you can later go and check what was the problem