Page 1 of 1

Corn jon to auto restart server when its down

Posted: Sun Jun 05, 2016 8:17 am
by alexcshabu
Hey everyone i want to know the corn job to auto restart server when its down . My server has 8 gb ram and it crashes due to high mysql usage . right now i can't afford to upgrade my server so please tell me how to do this .
http://www.hublaa-autoliker.com/ it crashes most of the time and i have to manually restart the site can someone help me to solve this

Re: Corn jon to auto restart server when its down

Posted: Mon Jun 06, 2016 5:40 pm
by SS88
Try "Monit". Not bulky and is coded to monitor services and restart them should they be offline, be slow, or use up too much RAM.

Config example: https://mmonit.com/wiki/Monit/ConfigurationExamples