Shell Script To Auto Restart Apache HTTPD

Saturday, August 28th, 2010 2,837 views

Here is a simple shell script tested on CentOS / RHEL / Fedora / Debian / Ubuntu Linux. Should work under any other UNIX liker operating system. It will check for httpd pid using pgrep command Pgrep command pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria [...]