Author: NicolasPierron Date: Wed Jul 27 20:55:39 2011 New Revision: 27979 URL: https://svn.nixos.org/websvn/nix/?rev=27979&sc=1
Log: UPS: Make sure the driver pid files can be stored. Modified: nixos/trunk/modules/services/monitoring/ups.nix Modified: nixos/trunk/modules/services/monitoring/ups.nix ============================================================================== --- nixos/trunk/modules/services/monitoring/ups.nix Wed Jul 27 20:55:35 2011 (r27978) +++ nixos/trunk/modules/services/monitoring/ups.nix Wed Jul 27 20:55:39 2011 (r27979) @@ -246,6 +246,13 @@ power.ups.schedulerRules = mkDefault "${pkgs.nut}/etc/upssched.conf.sample"; + system.activationScripts.upsSetup = stringAfter [ "users" "groups" ] + '' + # Used to store pid files of drivers. + mkdir -p /var/state/ups + ''; + + /* users.extraUsers = [ { name = "nut"; _______________________________________________ nix-commits mailing list nix-comm...@cs.uu.nl http://mail.cs.uu.nl/mailman/listinfo/nix-commits