40

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..

0

1 Answer 1

52

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.)

If you want the settings to be applied immediately, you need to restart the service (systemctl restart).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .