biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / munin / adding_sconfdir_munin-node.patch
blob6e14d61370342a6cc5df247fd6e3fccd986adf1f
1 commit af5fa3623bb9a73052f9154be4a0f38c60ea42a2
2 Author: Kjetil Orbekk <kjetil.orbekk@gmail.com>
3 Date: Thu Nov 23 21:21:36 2017 -0500
5 node: add --sconfdir to set plugin configuration dir
7 diff --git a/node/sbin/munin-node b/node/sbin/munin-node
8 index 909c8c4e..0ccf3941 100755
9 --- a/node/sbin/munin-node
10 +++ b/node/sbin/munin-node
11 @@ -100,9 +100,11 @@ sub parse_args
12 my @ORIG_ARGV = @ARGV;
14 my $servicedir_cmdline;
15 + my $sconfdir_cmdline;
16 print_usage_and_exit() unless GetOptions(
17 "config=s" => \$conffile,
18 "servicedir=s" => \$servicedir_cmdline,
19 + "sconfdir=s" => \$sconfdir_cmdline,
20 "debug!" => \$DEBUG,
21 "pidebug!" => \$PIDEBUG,
22 "paranoia!" => \$paranoia,
23 @@ -112,6 +114,7 @@ sub parse_args
25 # We untaint the args brutally, since the sysadm should know what he does
26 $servicedir = $1 if defined $servicedir_cmdline && $servicedir_cmdline =~ m/(.*)/;
27 + $sconfdir = $1 if defined $sconfdir_cmdline && $sconfdir_cmdline =~ m/(.*)/;
29 # Reset ARGV (for HUPing)
30 @ARGV = @ORIG_ARGV;
31 @@ -175,6 +178,10 @@ Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf]
33 Override plugin directory [@@CONFDIR@@/plugins/]
35 +=item B<< --sconfdir <dir> >>
37 +Override plugin configuration directory [@@CONFDIR@@/plugin-conf.d/]
39 =item B< --[no]paranoia >
41 Only run plugins owned by root. Check permissions as well. [--noparanoia]