fn: sgnd_is_active
Purpose
Check whether the named systemd service is active.
Arguments
$1— Service name.
Returns
Passes through the exit status of systemctl is-active --quiet.
Usage
sgnd_is_active ssh && sayinfo "SSH is active"

fn: sgnd_is_active
Check whether the named systemd service is active.
$1 — Service name.Passes through the exit status of systemctl is-active --quiet.
sgnd_is_active ssh && sayinfo "SSH is active"