systemctl status

The command that shows a systemd unit's current state, main PID, recent resource use and last few log lines.

In more detail

It is the quickest local check that a service is up. Its exit status is 0 when the unit is active, so scripts can test it. Status tells you the current state; the journal explains the transitions and failures that led there.

Related terms

Taught in

References