Bash Script For Restarting Daemon

This script will check to see if a daemon is still running. The daemon name is set in the PROCESS_NAME variable. The pgrep command searches for the process to see if it’s running. If no threads are found then the dameon is started back up and the script exits. In this example the script checks to see if the apache2 […]