From d6e5484e2bd7510201a089b48eee2b0c732f408c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 21 Jul 2013 21:28:54 +0200 Subject: [PATCH] apcupsd-service: create missing /run/apcupsd/ directory apcupsd complains about this missing directory when it is starting the shutdown procedure. --- modules/services/monitoring/apcupsd.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/monitoring/apcupsd.nix b/modules/services/monitoring/apcupsd.nix index 053851be398..017c896cf4d 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"; };