Auto Restart Apache/Mysql Service on High Load

by Balvinder Singh ·
Published December 29, 2014
· Updated January 15, 2018

Sometime our server hang on high load which cause ssh hang so we are not able to login and check any service which are taking high memory or CPU nd also it cases our website down for some time. So we need a auto script which can restart services when taking too much load on server. This below script use for Auto Restart Apache/Mysql Service on High Load whatever take high load on cpu or ram and send mail so that details can be check on server on later or that time.

Ablout LinuxTweaks

Welcome to Linuxtweaks – the blog contains a lot of useful information for Linux System administrator ,newbies who are going to start there career as Linux System admin and also for linux desktop users. We basically share what we are getting issue on daily bases.We started this blog on November 2014 because we wanted to keep our knowledge on one place for future uses and also for sharing our knowledge with others on the basic of Linux technologies.