diff options
author | Florian Jacob <projects+git@florianjacob.de> | 2017-10-14 00:38:32 +0200 |
---|---|---|
committer | Domen Kožar <domen@enlambda.com> | 2017-10-21 11:27:42 +0100 |
commit | 43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1 (patch) | |
tree | 90c8c88679b849eb828ac5a0ec107a017f1f0eca /nixos | |
parent | 3338985aab3af2793a2b81473ee98d292a1ed806 (diff) |
nixos/munin: move munin-cron to systemd.tmpfiles
to match with munin-node.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/munin.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index 0ec201a0eb16a..cc6d51f0ef1ba 100644 --- a/nixos/modules/services/monitoring/munin.nix +++ b/nixos/modules/services/monitoring/munin.nix @@ -215,9 +215,11 @@ in }; }; - system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] '' - mkdir -p /var/{run,log,www,lib}/munin - chown -R munin:munin /var/{run,log,www,lib}/munin - ''; + systemd.tmpfiles.rules = [ + "d /var/run/munin 0755 munin munin -" + "d /var/log/munin 0755 munin munin -" + "d /var/www/munin 0755 munin munin -" + "d /var/lib/munin 0755 munin munin -" + ]; })]; } |