Test for a running process with an exact executable name.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_proc_exists

Purpose

Test for a running process with an exact executable name.

Arguments

  • $1 — Executable name as matched by pgrep -x.

Returns

  • 0 if found; nonzero otherwise.

Usage

  sgnd_proc_exists sshd