mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-08 22:44:55 +02:00
Rename 'fork' to 'multiprocess'.
This commit is contained in:
parent
a3b1470025
commit
bb11980d85
@ -817,5 +817,5 @@ madeserver_autofit 7d
|
|||||||
madeserver_sensitivity 0.1
|
madeserver_sensitivity 0.1
|
||||||
|
|
||||||
# If set to 1, Pandora FMS servers will run in separate processes.
|
# If set to 1, Pandora FMS servers will run in separate processes.
|
||||||
fork 0
|
multiprocess 0
|
||||||
|
|
||||||
|
@ -589,7 +589,7 @@ sub pandora_load_config {
|
|||||||
|
|
||||||
$pa_config->{"madeserver"} = 0; # 774.
|
$pa_config->{"madeserver"} = 0; # 774.
|
||||||
|
|
||||||
$pa_config->{"fork"} = 0; # 775.
|
$pa_config->{"multiprocess"} = 0; # 775.
|
||||||
|
|
||||||
# Check for UID0
|
# Check for UID0
|
||||||
if ($pa_config->{"quiet"} != 0){
|
if ($pa_config->{"quiet"} != 0){
|
||||||
@ -1414,8 +1414,8 @@ sub pandora_load_config {
|
|||||||
elsif ($parametro =~ m/^madeserver\s+([0-1])/i){
|
elsif ($parametro =~ m/^madeserver\s+([0-1])/i){
|
||||||
$pa_config->{'madeserver'}= clean_blank($1);
|
$pa_config->{'madeserver'}= clean_blank($1);
|
||||||
}
|
}
|
||||||
elsif ($parametro =~ m/^fork\s+([0-1])/i){
|
elsif ($parametro =~ m/^multiprocess\s+([0-1])/i){
|
||||||
$pa_config->{'fork'}= clean_blank($1);
|
$pa_config->{'multiprocess'}= clean_blank($1);
|
||||||
}
|
}
|
||||||
} # end of loop for parameter #
|
} # end of loop for parameter #
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ sub new ($$$$$;$) {
|
|||||||
$self->{'_consumer'} = $consumer;
|
$self->{'_consumer'} = $consumer;
|
||||||
|
|
||||||
# Configure forking
|
# Configure forking
|
||||||
$self->{'_fork'} = $config->{'fork'} == 1 ? 1 : 0;
|
$self->{'_fork'} = $config->{'multiprocess'} == 1 ? 1 : 0;
|
||||||
$self->{'_child_pid'} = undef;
|
$self->{'_child_pid'} = undef;
|
||||||
|
|
||||||
# Run!
|
# Run!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user