====== Ubuntu - SystemD - Check if a service is active (running) ====== systemctl is-active cron returns: active ---- systemctl is-active ssh returns: inactive ----
systemctl is-active cron
active
systemctl is-active ssh
inactive