IT Toolbox

List failed systemd services

View my favorites
Linux Low risk

List failed systemd services

Displays the currently systemd units in state.

Command / script
systemctl --failed --no-pager

When should you use it?

Use this as a first check after a restart or when an expected service is no longer working.

What the script does

  • systemctl --failed filters units in a failed state.
  • Then use systemctl status name.service to inspect a specific service.

Precautions

  • Do not restart a critical service until you understand why it failed.

Rollback

No changes are made.

♡ 0