≡ Menu

Linux / Unix Script: Simple Process Checker To Find Out If A Service Is Running or Not

A simple shell script to find out whether critical services are running or, not under Linux or Unix operating systems. The script can send notification using email.

Sample outputs:

Fig.01: Script in action (click to enlarge)

Fig.01: Script in action (click to enlarge)

{ 5 comments… add one }
  • Edwin Sineath June 22, 2014, 12:28 pm

    worked perfectly…once I changed permissions

  • Matt Hall February 13, 2014, 5:01 pm

    Is there a way to get this to process the “_chklist” with a comma delimited instead of a space between the processes?

  • dima October 7, 2013, 6:18 pm

    e a Bash shell script that creates 10 files under the directory /tmp/ with the names:

    Foo1, foo2, … etc. then write in each of them “Hello in 1”, Hello in 2”, …etc.

    Then rename them to the names CPE471_0_file, CPE471_1_file , CPE471_9_file , etc.

  • Debian May 21, 2013, 1:17 pm

    Won’t send me a message via email. says error on line 51..

    • Sayajin February 10, 2014, 3:22 pm

      change the section under: ## Send a quick email update (good for cron jobs) ##

      to

      ## Send a quick email update (good for cron jobs) ##
      [[ “$_failed” == “true” && “$_sendemail” == “yes” ]] &” | $_mail -s ‘Service not Running’ “$_email”;
      }

Security: Are you a robot or human?

Leave a Comment