Sometimes server act weird and stop some services due to any issue I faced this issue with my a href http cssjockey net target blank CSSJockey net a WordPress demo sites server where MySQL service stops after running the clean script to remove demo demo sites after three days So I created a Cron Job on my a href https goo gl tNcE l target blank DigitalOcean a Ubuntu Droplet to check if and start MySQL service if its not running I scheduled this to run the check every minute Here's the code and steps to setup this cron job...

Continue Reading