UPS: Make sure the driver pid files can be stored.

svn path=/nixos/trunk/; revision=27979
This commit is contained in:
Nicolas Pierron 2011-07-27 20:55:39 +00:00
parent ef63ea98f4
commit 66ffeb3fd9

View File

@ -246,6 +246,13 @@ in
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";