I have a linux server and sometime MYSQL and HTTPD just stop. I need a Cron Sript that will run every 5 minuites to check if its off. And if its off I need it to run sudo service httpd start or sudo service mysqld start.
Hello,
I am Sr. software engineer have experience in web application development and also fixed these type issue like auto restart when apache(httpd) or nginx stop. Let me know when you want to fixed this issue.
I will write shell script to auto restart apache and mysql.
Thanks
I've a lot of expirence with this shit, i can run for you a supervisor(linux wrapper app) on those services,or to write you a bash command that will do it. Luck :)