From a37d903e2fb65678c95b3a052ccf22aa92411e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Rigart?= Date: Fri, 6 Jun 2014 15:44:04 +0200 Subject: [PATCH] make MPM itk pretend it's prefork --- apachebuddy.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apachebuddy.pl b/apachebuddy.pl index ba67a2b..021c81d 100644 --- a/apachebuddy.pl +++ b/apachebuddy.pl @@ -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 ;