How To Restart Apache Automatically After Crash?

Linux Server Management Tips and Tricks
Post Reply
arnlweb
Site Admin
Posts: 92
Joined: Wed Jun 22, 2016 1:28 pm
Location: India
Contact:

How To Restart Apache Automatically After Crash?

Post by arnlweb » Wed Oct 25, 2017 8:19 am

Restarting Apache Service Automatically If It is Fails

I am using this cron and it's working fine...

Edit Cron Tab....

Code: Select all

crontab -e
And add this...

Code: Select all

* * * * * /usr/sbin/service apache2 status > /dev/null || /usr/sbin/service apache2 start
Thanks.

Post Reply