Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I delete the overrides file for a systemd unit?
I tried systemctl edit myunit, deleting all the text, then saving, but that appears to have no effect, with an error message ending with canceled: temporary file is empty..
systemctl edit myunit
canceled: temporary file is empty.
The appropriate command is systemctl revert, which will revert the given unit to its vendor configuration, deleting all overrides. (It will also restore the unit’s properties to their defaults, and unmask it if it was masked by the administrator.)
Required, but never shown
5 months ago