Restart Apache if failed
This bash script check web site every 5 minutes, restart the web server if web site is not responding. Create a file mkdir /usr/serverok vi /usr/serverok/check_httpd.sh Add #!/bin/bash # Author: Yujin Boby # Web: https://serverok.in # Email: admin@serverok.in /usr/bin/wget –tries=1 –timeout=30 -O /dev/null https://YOUR_DOMAIN.EXTN/ if [ $? -ne 0 ]; then systemctl restart httpd datetime=`date … Read more