Portal Home > Knowledgebase > Articles Database > Restart Service Automatic


Restart Service Automatic




Posted by Elmokadim, 09-10-2012, 06:49 PM
Hello, I Need Restart Service "Apache or Mysql" Automatic When high Load Is there a way to do this or the script is this? Thanks.

Posted by Time4VPS, 09-11-2012, 02:55 AM
Use some kind of monitoring tools. Very good piece of software is Monit. Try it.

Posted by anuja9991, 09-11-2012, 03:36 AM
Restarting service during the load is not ideal solution to get rid of load issue. You need to find out what causes the load on the server and optimize it. You may end up crashing the server eventually if you restart the service quite often.

Posted by TravisT-[SSS], 09-11-2012, 08:20 AM
this You need to fix the problem. There are many ways that can be done about this but we need more information. However, it is more ideal to hire someone to do this for you. If you really wanted to go this way a cron job bash script could be coded check load then restart.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Afoordablehost? (Views: 841)
Ezzi.net Network Down? (Views: 669)
LT Databank Down? (Views: 655)

Language: