File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,16 @@ my $debug = 0;
43
43
my $stdout = 0;
44
44
my $loglevel = ' info' ;
45
45
46
+ my $max_servers = 10;
47
+
46
48
print_usage_and_exit()
47
49
unless GetOptions(
48
50
" listen=s" => \$listen ,
49
51
" debug" => \$debug ,
50
52
" stdout" => \$stdout ,
51
53
" loglevel=s" => \$loglevel ,
52
54
" version" => \&print_version_and_exit,
55
+ " max-servers=i" => \$max_servers ,
53
56
" help" => \&print_usage_and_exit,
54
57
);
55
58
@@ -77,7 +80,7 @@ if ($stdout) {
77
80
78
81
Munin::Common::Logger::INFO(" Starting preforking munin http server at $host :$port " );
79
82
80
- Munin::Master::Http-> new( { host => $host , port => $port } )-> run( prefork => 1 , max_servers => 10 );
83
+ Munin::Master::Http-> new( { host => $host , port => $port } )-> run( prefork => ( $max_servers > 0) , max_servers => $max_servers );
81
84
82
85
83
86
sub print_usage_and_exit {
You can’t perform that action at this time.
0 commit comments