From f660adab584099fcf995066ef1cb1cbe994e0ba1 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 22 Oct 2014 14:40:07 -0700 Subject: [PATCH] apache: switch to use the apache worker mpm Fixes: #9169 Signed-off-by: Yehuda Sadeh --- tasks/rgw.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/rgw.py b/tasks/rgw.py index 850bc82c3cc..0fe1dc0918e 100644 --- a/tasks/rgw.py +++ b/tasks/rgw.py @@ -271,7 +271,17 @@ def start_apache(ctx, config): if system_type == 'deb': apache_name = 'apache2' else: - apache_name = '/usr/sbin/httpd' + try: + remote.run( + args=[ + 'stat', + '/usr/sbin/httpd.worker', + ], + ) + apache_name = '/usr/sbin/httpd.worker' + except CommandFailedError: + apache_name = '/usr/sbin/httpd' + proc = remote.run( args=[ 'adjust-ulimits', -- 2.47.3