diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-07-21 21:28:54 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-07-22 14:54:27 +0200 |
commit | d6e5484e2bd7510201a089b48eee2b0c732f408c (patch) | |
tree | 620f5f5861bb47c6d69e809882ed6c397f5629b4 /modules/services/monitoring | |
parent | dc61694d013cc7bc65006770b0a5278cd56440a7 (diff) | |
download | nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar.gz nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar.bz2 nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar.lz nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar.xz nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.tar.zst nixlib-d6e5484e2bd7510201a089b48eee2b0c732f408c.zip |
apcupsd-service: create missing /run/apcupsd/ directory
apcupsd complains about this missing directory when it is starting the shutdown procedure.
Diffstat (limited to 'modules/services/monitoring')
-rw-r--r-- | modules/services/monitoring/apcupsd.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/services/monitoring/apcupsd.nix b/modules/services/monitoring/apcupsd.nix index 053851be398f..017c896cf4d8 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"; }; |