diff options
author | Florian Jacob <projects+git@florianjacob.de> | 2018-10-03 17:36:37 +0200 |
---|---|---|
committer | Florian Jacob <projects+git@florianjacob.de> | 2018-10-03 17:36:37 +0200 |
commit | c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f (patch) | |
tree | 90d25c0ba5f789c694489c3cf1d1543ac282ae3d /nixos | |
parent | 1951aea6a5b127a7a398784e4bb26746d01c157c (diff) | |
download | nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar.gz nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar.bz2 nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar.lz nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar.xz nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.tar.zst nixpkgs-c54aa26a2da61f3027e6d664f8993b9ac1d8dc6f.zip |
nixos/munin: move from /var/run to /run
as using /var/run now emits a warning by systemd's tmpfiles.d. As /var/run is already a symlink to /run, this can't break anything, and data does not need to be migrated.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/munin.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index ff9604c7dbc..2b265d5b5a9 100644 --- a/nixos/modules/services/monitoring/munin.nix +++ b/nixos/modules/services/monitoring/munin.nix @@ -5,8 +5,8 @@ # TODO: support fastcgi # http://munin-monitoring.org/wiki/CgiHowto2 -# spawn-fcgi -s /var/run/munin/fastcgi-graph.sock -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-graph -# spawn-fcgi -s /var/run/munin/fastcgi-html.sock -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-html +# spawn-fcgi -s /run/munin/fastcgi-graph.sock -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-graph +# spawn-fcgi -s /run/munin/fastcgi-html.sock -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-html # https://paste.sh/vofcctHP#-KbDSXVeWoifYncZmLfZzgum # nginx http://munin.readthedocs.org/en/latest/example/webserver/nginx.html @@ -22,7 +22,7 @@ let dbdir /var/lib/munin htmldir /var/www/munin logdir /var/log/munin - rundir /var/run/munin + rundir /run/munin ${cronCfg.extraGlobalConfig} @@ -170,7 +170,7 @@ in wantedBy = [ "multi-user.target" ]; path = with pkgs; [ munin smartmontools "/run/current-system/sw" "/run/wrappers" ]; environment.MUNIN_LIBDIR = "${pkgs.munin}/lib"; - environment.MUNIN_PLUGSTATE = "/var/run/munin"; + environment.MUNIN_PLUGSTATE = "/run/munin"; environment.MUNIN_LOGDIR = "/var/log/munin"; preStart = '' echo "updating munin plugins..." @@ -188,7 +188,7 @@ in }; # munin_stats plugin breaks as of 2.0.33 when this doesn't exist - systemd.tmpfiles.rules = [ "d /var/run/munin 0755 munin munin -" ]; + systemd.tmpfiles.rules = [ "d /run/munin 0755 munin munin -" ]; }) (mkIf cronCfg.enable { @@ -210,7 +210,7 @@ in }; systemd.tmpfiles.rules = [ - "d /var/run/munin 0755 munin munin -" + "d /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 -" |