nixpkgs/nixos/modules
Kjetil Orbekk bd3e49a80e nixos/munin: fix broken plugin wrappers
The munin-node service used wrapProgram to inject environment variables.
This doesn't work because munin plugins depend on argv[0], which is
overwritten when the executable is a script with a shebang line (example
below).

This commit removes the wrappers and instead passes the required
environment variables to munin-node.

Eliminating the wrappers resulted in some broken plugins, e.g., meminfo
and hddtemp_smartctl. That was fixed with the per-plugin configuration.

Example:

  The plugin if_eth0 is a symlink to /.../plugins/if_, which uses $0
  to determine that it should monitor traffic on the eth0 interface.

  if_ is a wrapped program, and runs `exec -a "$0" .if_-wrapped`

  .if_-wrapped has a "#!/nix/.../bash" line, which results in bash
  changing $0, and as a result the plugin thinks my interface
  is called "-wrapped".
2017-11-25 11:23:56 +01:00
..
config fonts: fix fontconfig.localConf when used with penultimate 2017-11-10 16:57:45 -05:00
hardware intel-ocl: r4.0-59481 -> 5.0-63503 2017-11-01 17:59:49 +00:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer U-Boot: 2017.03 -> 2017.11 2017-11-18 13:57:17 +02:00
misc ixos ids: reserve restya-board 2017-11-22 12:14:24 +01:00
profiles nixos: clean up kernel modules 2017-10-07 01:48:03 +02:00
programs Merge pull request #31371 from gnidorah/sway 2017-11-24 10:03:41 +01:00
security nixos/pam: fix docs about path to u2f_keys file 2017-11-17 17:50:40 +01:00
services nixos/munin: fix broken plugin wrappers 2017-11-25 11:23:56 +01:00
system nixos/system: make switch-to-configuration script pure. 2017-11-19 19:42:54 +01:00
tasks nixos/network-interfaces: Add " around network interface names 2017-11-09 20:27:33 +01:00
testing Revert "nixos/test-instrumentation: softcode DISPLAY" 2017-11-08 17:04:39 +00:00
virtualisation remove prlcc from global systemd services 2017-11-11 17:05:08 -06:00
module-list.nix Merge pull request #30252 from jtojnar/fwupd 2017-11-24 04:07:52 +01:00
rename.nix opendkim: automated key generation (no manual changes for service initialization required anymore) 2017-10-23 15:53:55 +02:00