Index: support/win32/ApacheMonitor.c =================================================================== RCS file: /home/cvspublic/httpd-2.0/support/win32/ApacheMonitor.c,v retrieving revision 1.22.2.1 diff -u -r1.22.2.1 ApacheMonitor.c --- support/win32/ApacheMonitor.c 3 Feb 2003 17:32:10 -0000 1.22.2.1 +++ support/win32/ApacheMonitor.c 22 Sep 2003 13:41:52 -0000 @@ -1040,10 +1040,13 @@ lstrcpy(szBuf, szImagePath); CharLower(szBuf); /* the service name could be Apache*.exe */ - if ((strstr(szBuf, "\\apache") != NULL) + if (((strstr(szBuf, "\\apache") != NULL) && strstr(szBuf, ".exe") && (strstr(szBuf, "--ntservice") != NULL || strstr(szBuf, "-k ") != NULL)) + /* or the service name could be tomcat.exe or jk_nt_service.exe */ + || (strstr(szBuf, "\\tomcat.exe") != NULL) + || (strstr(szBuf, "\\jk_nt_service.exe") != NULL)) { g_stServices[stPos].szServiceName = strdup(achKey); g_stServices[stPos].szImagePath =