Rename 'fork' to 'multiprocess'.

This commit is contained in:
Ramon Novoa 2024-01-24 11:01:21 +01:00
parent a3b1470025
commit bb11980d85
3 changed files with 5 additions and 5 deletions

View File

@ -817,5 +817,5 @@ madeserver_autofit 7d
madeserver_sensitivity 0.1
# If set to 1, Pandora FMS servers will run in separate processes.
fork 0
multiprocess 0

View File

@ -589,7 +589,7 @@ sub pandora_load_config {
$pa_config->{"madeserver"} = 0; # 774.
$pa_config->{"fork"} = 0; # 775.
$pa_config->{"multiprocess"} = 0; # 775.
# Check for UID0
if ($pa_config->{"quiet"} != 0){
@ -1414,8 +1414,8 @@ sub pandora_load_config {
elsif ($parametro =~ m/^madeserver\s+([0-1])/i){
$pa_config->{'madeserver'}= clean_blank($1);
}
elsif ($parametro =~ m/^fork\s+([0-1])/i){
$pa_config->{'fork'}= clean_blank($1);
elsif ($parametro =~ m/^multiprocess\s+([0-1])/i){
$pa_config->{'multiprocess'}= clean_blank($1);
}
} # end of loop for parameter #

View File

@ -56,7 +56,7 @@ sub new ($$$$$;$) {
$self->{'_consumer'} = $consumer;
# Configure forking
$self->{'_fork'} = $config->{'fork'} == 1 ? 1 : 0;
$self->{'_fork'} = $config->{'multiprocess'} == 1 ? 1 : 0;
$self->{'_child_pid'} = undef;
# Run!