From bc4b5b97bf05726ffadaab34cadd4cdeb24679f5 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Tue, 28 Jun 2005 18:44:46 +0000 Subject: [PATCH] Commit a trivial patch which permits Apache 2.0's ApacheMonitor to browse Apache 1.3, 2.0 and now, 2.1+ installed httpd services. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@202265 13f79535-47bb-0310-9956-ffa450edef68 --- support/win32/ApacheMonitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index 8241ce23f91..6392a1ff34f 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -998,7 +998,9 @@ BOOL GetApacheServicesStatus() lstrcpy(szBuf, szImagePath); CharLower(szBuf); /* the service name could be Apache*.exe */ - if ((strstr(szBuf, "\\apache") != NULL) + /* the service name could be httpd*.exe or Apache*.exe */ + if (((strstr(szBuf, "\\apache") != NULL) + || (strstr(szBuf, "\\httpd") != NULL)) && strstr(szBuf, ".exe") && (strstr(szBuf, "--ntservice") != NULL || strstr(szBuf, "-k ") != NULL)) -- 2.47.2