Linux systemd Services Cheat Sheet/Check if service is failed

Return failure state for a unit.

Section: Service Lifecycle

Check if service is failed

bash
bash
systemctl is-failed nginx
Explanation

Good for automation and troubleshooting.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Service Lifecycle
Check if service is active
Return a simple active state.
OpenIn sheetbashsame section
Start a service
Start a unit immediately.
OpenIn sheetbashsame section
Stop a service
Stop a running service.
OpenIn sheetbashsame section
Restart a service
Restart a running service.
OpenIn sheetbashsame section
Reload a service
Reload config without full restart if supported.
OpenIn sheetbashsame section
Try reload or restart
Reload when possible, restart otherwise.
OpenIn sheetbashsame section