Clear Failed Unit State with systemctl reset-failed

systemctl reset-failed forgets units stuck in the 'failed' state so they no longer clutter status output and monitoring.

LinuxservicessystemdtroubleshootingMedium risk
Run `sudo systemctl reset-failed` to clear every unit stuck in a failed state, or pass a unit name to reset only that one.

01Command

Command
$ sudo systemctl reset-failed

02What it does

Once a unit fails, systemd keeps recording its failed state until it is restarted or reset, so `systemctl` keeps listing it even after you fixed the cause. `reset-failed` clears that recorded state; with no arguments it resets all failed units at once. This is commonly needed before reloads of monitoring configs, or to silence alerts from one-shot units that exit non-zero.

03Risk

RiskMedium risk
Requirementssystemd-based distribution.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions