Ubuntu - SystemD - Check if a service is active (running)

systemctl is-active cron

returns:

active

systemctl is-active ssh

returns:

inactive