* Flush nscd when switching to a new configuration.

svn path=/nixos/trunk/; revision=33441
This commit is contained in:
Eelco Dolstra 2012-03-27 14:35:45 +00:00
parent da6046ef6b
commit 64241a3e90
1 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ in
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";
};