Skip to content

Commit

Permalink
nixos/kresd: set .stopIfChanged = false
Browse files Browse the repository at this point in the history
Since version 5.2.0 there's non-empty stop phase:
    ExecStopPost=/usr/bin/env rm -f "/run/knot-resolver/control/%i"
but it's perfectly OK to run that from a different version
(and typically it's no-op anyway).  Real-life example where this helps:
#49528 (comment)
  • Loading branch information
vcunat committed Dec 25, 2020
1 parent 12b1d81 commit 2b131c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/services/networking/kresd.nix
Expand Up @@ -135,6 +135,8 @@ in {
CacheDirectory = "knot-resolver";
CacheDirectoryMode = "0770";
};
# We don't mind running stop phase from wrong version. It seems less racy.
systemd.services."kresd@".stopIfChanged = false;

# Try cleaning up the previously default location of cache file.
# Note that /var/cache/* should always be safe to remove.
Expand Down

0 comments on commit 2b131c9

Please sign in to comment.