1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/nixos/modules/services
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
..
admin/salt salt-minion: link to configuration documentation 2017-05-11 07:12:04 +01:00
amqp nixos/rabbitmq: fix restarts and sasl logs 2017-09-23 17:58:43 -04:00
audio nixos/mpd: allow configuring playlist directory (#28252) 2017-08-20 20:34:34 +00:00
backup mysqlBackup service: let it work with default settings 2017-09-27 18:44:49 +02:00
cluster Revert "kubernetes: fix hashes after dockerTools change" 2017-09-28 14:09:49 +02:00
computing slurm: 15-08-5-1 -> 17.02.6, slurm-llnl -> slurm 2017-07-13 03:13:05 -04:00
continuous-integration hydra: 2017-10-26 -> 2017-11-21 2017-11-22 17:24:55 +00:00
databases Merge pull request #31641 from danbst/patch-13 2017-11-16 00:07:55 +01:00
desktops dleyna-server: init at 0.6.0 2017-11-15 14:02:37 +01:00
development hoogle service: fixups 2016-04-22 03:58:08 +02:00
editors replace "Mac OS X" and "OS X" with "macOS" 2017-08-07 21:41:30 +02:00
games Factorio service: fix typo in attribute path 2017-07-20 20:32:25 +02:00
hardware nixos/fwupd: disable by default 2017-11-25 06:49:38 +00:00
logging graylog module: adapt to Graylog version 2.3.0 2017-08-11 13:07:30 +02:00
mail dovecot: fix config if mailboxes == [] 2017-11-14 16:49:53 +01:00
misc nixos/matrix-synapse: remove unused log_file config 2017-11-20 09:29:45 +10:30
monitoring nixos/munin: fix broken plugin wrappers 2017-11-25 11:23:56 +01:00
network-filesystems kbfs: Add package in module 2017-10-08 12:49:58 -04:00
networking Merge pull request #31839 from bluescreen303/fix-rpfilter 2017-11-24 09:39:05 +01:00
printing cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00
scheduling nixos/atd: remove "batch" from setuid wrappers 2017-10-16 19:08:19 +02:00
search treewide: get rid of invalid buildPhases argument 2017-11-08 21:38:06 +01:00
security Merge pull request #30173 from dmjio/patch-1 2017-10-20 16:28:40 +00:00
system Merge pull request #26419 from roblabla/feature-sasl 2017-07-20 20:23:52 +02:00
torrent nixos/transmission: make it possible to use a different home directory (#29138) 2017-09-09 20:19:35 +00:00
ttys kmscon: reset ExecStart to allow override 2017-09-21 10:02:03 +08:00
web-apps nixos: init module: restya-board 2017-11-22 12:14:24 +01:00
web-servers inginious: fix options eval 2017-11-23 09:33:59 -05:00
x11 nixos/evilwm: allow enabling evilwm through services.xserver.windowManager.evilwm.* 2017-11-20 07:50:28 +01:00