Send the default pkill signal to exact-name processes if present.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_kill_if_running

Purpose

Send the default pkill signal to exact-name processes if present.

Arguments

  • $1 — Executable name.

Side effects

Calls pkill -x and ignores its error status.

Returns

  • 0 regardless of whether a match was found.

Usage

  sgnd_kill_if_running sgnd-example-process