apcupsd-service: create missing /run/apcupsd/ directory

apcupsd complains about this missing directory when it is starting the
shutdown procedure.
This commit is contained in:
Bjørn Forsman 2013-07-21 21:28:54 +02:00
parent dc61694d01
commit d6e5484e2b

View File

@ -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";
};