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:
parent
dc61694d01
commit
d6e5484e2b
@ -150,6 +150,7 @@ in
|
|||||||
systemd.services.apcupsd = {
|
systemd.services.apcupsd = {
|
||||||
description = "UPS daemon";
|
description = "UPS daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
preStart = "mkdir -p /run/apcupsd/";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.apcupsd}/bin/apcupsd -b -f ${configFile} -d1";
|
ExecStart = "${pkgs.apcupsd}/bin/apcupsd -b -f ${configFile} -d1";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user