Author: eelco
Date: Tue Mar 27 14:35:45 2012
New Revision: 33441
URL: https://nixos.org/websvn/nix/?rev=33441&sc=1
Log:
* Flush nscd when switching to a new configuration.
Modified:
nixos/trunk/modules/services/system/nscd.nix
Modified: nixos/trunk/modules/services/system/nscd.nix
==============================================================================
--- nixos/trunk/modules/services/system/nscd.nix Tue Mar 27 11:31:25
2012 (r33440)
+++ nixos/trunk/modules/services/system/nscd.nix Tue Mar 27 14:35:45
2012 (r33441)
@@ -57,12 +57,12 @@
exec = "nscd -f ${./nscd.conf} -d 2> /dev/null";
};
- # Flush nscd's ‘hosts’ database when the network comes up to get
- # rid of any negative entries.
+ # Flush nscd's ‘hosts’ database when the network comes up or the
+ # system configuration changes to get rid of any negative entries.
jobs.invalidate_nscd =
{ name = "invalidate-nscd";
description = "Invalidate NSCD cache";
- startOn = "ip-up";
+ startOn = "ip-up or config-changed";
task = true;
exec = "${pkgs.glibc}/sbin/nscd --invalidate hosts";
};
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits