50

How can I remove a unit from the systemctl --failed list without rebooting the machine?

Background: I have, amongst others, the following entry in the list:

[email protected] loaded failed failed OpenVPN service for intranert

This happened because I misspelled intranet, which is the actual productive instance, on the unit template's activation some time ago. However, I now always get confused at first glance, when I check the server's failed units, since it looks like the productive service actually failed until I recognize the spelling mistake and remember my bygone typo.

Richard Neumann
  • 1,309
  • 1
  • 14
  • 22

1 Answers1

83

Use systemctl to remove the failed status. To reset all units with failed status:

systemctl reset-failed

or just your specific unit:

systemctl reset-failed [email protected]
sebasth
  • 14,332
  • 4
  • 50
  • 68