diff --git a/modules/services/monitoring/apcupsd.nix b/modules/services/monitoring/apcupsd.nix index 053851be398f56f..017c896cf4d8d7a 100644 --- a/modules/services/monitoring/apcupsd.nix +++ b/modules/services/monitoring/apcupsd.nix @@ -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"; };