Search notes:

systemctl is-active

$ systemctl is-active nginx certbot inexisting-service
active
inactive
inactive

See also

systemctl

Index