Here’s a simple script I made up that will auto restart your HTTPD service if it reaches a high load.
The script will actually stop your HTTPD server when your load is higher than the maximum load settings and will re-start when the load is back to zero.
If you are on a ser ...
Well, I have been struggling with one of my dedicated servers and just found this cool script that will auto-restart the Apache httpd server if it goes out.
Save the following as restart.sh:
#!/bin/bash
# Apache Process Monitor
# Restart Apache Web Server When It Goes Down
# --- ...