Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: ea7e705cd905e01bc65f2a7ccc6e700bd1bcd4e0 https://github.com/NixOS/nixpkgs/commit/ea7e705cd905e01bc65f2a7ccc6e700bd1bcd4e0 Author: Christian Kauhaus <k...@flyingcircus.io> Date: 2016-08-04 (Thu, 04 Aug 2016)
Changed paths: M nixos/modules/services/web-servers/varnish/default.nix M pkgs/servers/varnish/default.nix Log Message: ----------- varnish: fix localstatedir for varnish* tools (#17508) The varnish tools (varnishstat, varnishlog, ...) tried to load the VSM file from a spurious var directory in the Nix store. Fix the default so the tools "just work" when also keeping services.varnish.stateDir at the default. Notes: - The tools use $localstatedir/$HOSTNAME so I've adapted the default for stateDir as well to contain hostName. - Added postStop action to remove the localstatedir. There is no point in keeping it around when varnish does not run, as it regenerates it on startup anyway. Fixes #7495
_______________________________________________ nix-commits mailing list nix-comm...@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-commits