4.6.5. check_if_running

Usage

check_if_running REGEX

Description

Checks the process table for a command line matching REGEX.

Notes

  • Outputs OK message and returns 0 if any matches are found.
  • Outputs ERROR message and returns 2 if any matches are found.