Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apachebuddy.pl
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,14 @@ sub get_apache_conf_file {
# model based on the way the binary was built
sub get_apache_model {
my ( $process_name ) = @_;
my $model = `$process_name -l | egrep "worker.c|prefork.c"`;
my $model = `$process_name -l | egrep "worker.c|prefork.c|itk.c"`;
chomp($model);
$model =~ s/\s*(.*)\.c/$1/;

if ( $model eq 'itk' ) {
$model = 'prefork' ;
}

# return the name of the MPM, or 0 if there is no result
if ( $model eq '' ) {
$model = 0 ;
Expand Down