Find failed services
Read-onlysystemctl --failed --no-pagerExpect: An empty list means no systemd units are currently marked failed.
← Back to overviewAll commands
Essential check 3 / 3
03 / FIELD NOTES
List failed systemd units, listening ports, and recent errors.
Look at actual service state before restarting things. A port conflict or a clear error log often explains a failed deployment.
After installing a service, or when a web application does not respond.
These commands assume systemd. On Alpine (OpenRC) use rc-status and the logs under /var/log.
systemctl --failed --no-pagerExpect: An empty list means no systemd units are currently marked failed.
sudo ss -lntpExpect: Check which process owns a port and whether it binds to loopback or all interfaces.
sudo journalctl -p err -b -n 30 --no-pagerExpect: Read the error before making changes. Logs may contain private information.
Read-only. Does not restart services or change firewall rules.
{
"slug": "service-health",
"risk": "safe",
"tags": [
"systemd",
"ports",
"logs",
"linux"
],
"updated": "2026-10-30",
"pathIndex": 3,
"why": "Look at actual service state before restarting things. A port conflict or a clear error log often explains a failed deployment.",
"steps": [
{
"command": "systemctl --failed --no-pager",
"risk": "safe"
},
{
"command": "sudo ss -lntp",
"risk": "safe"
},
{
"command": "sudo journalctl -p err -b -n 30 --no-pager",
"risk": "safe"
}
]
}