Respected members, i want to kill apache/http and restart it again automatically. i need this because sometime we are not in front of the server to fix an overload issue immediately, which can affect a server very badly. i believe many of us already face this kind of situation and hope there is some kind of script or way to do this. looking forward to get help from you
You could run 'service httpd restart' on a cron (crontab -e, then use a resource like this to help you write the line); but this is hardly optimal. You ought to look into what is causing the bottlenecks with Apache and solve it rather than work around issues. The optimisation section of this thread will probably help you