nixos/kresd: set .stopIfChanged = false
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: https://github.com/NixOS/nixpkgs/issues/49528#issuecomment-747723198
This commit is contained in:
parent
12b1d81ab9
commit
2b131c97bb
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue