Skip to content

Commit

Permalink
apcupsd-service: create missing /run/apcupsd/ directory
Browse files Browse the repository at this point in the history
apcupsd complains about this missing directory when it is starting the
shutdown procedure.
  • Loading branch information
bjornfor committed Jul 22, 2013
1 parent dc61694 commit d6e5484
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/services/monitoring/apcupsd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ in
systemd.services.apcupsd = {
description = "UPS daemon";
wantedBy = [ "multi-user.target" ];
preStart = "mkdir -p /run/apcupsd/";
serviceConfig = {
ExecStart = "${pkgs.apcupsd}/bin/apcupsd -b -f ${configFile} -d1";
};
Expand Down

0 comments on commit d6e5484

Please sign in to comment.