]> granicus.if.org Git - apache/commitdiff
Since we expect many users to start experimenting with the next release,
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 17 Aug 2001 17:00:07 +0000 (17:00 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 17 Aug 2001 17:00:07 +0000 (17:00 +0000)
  and the 'Apache' default server name definately conflicts with a stable
  1.3.20 install, changed the AP_DEFAULT_SERVICE_NAME to "Apache2" (unless
  the user overrides in the compilation.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90287 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c
server/mpm/winnt/mpm_winnt.h

index c037fa578638abe65e6a1eb10d163263b319022d..b07750570201076b4991527aa193a2d90485ad6c 100644 (file)
@@ -1766,7 +1766,7 @@ void winnt_rewrite_args(process_rec *process)
     /* Get the default for any -k option, except run */
     if (service_set == SERVICE_UNSET && strcasecmp(signal_arg, "run")) {
         service_set = mpm_service_set_name(process->pool, &service_name,
-                                           DEFAULT_SERVICE_NAME);
+                                           AP_DEFAULT_SERVICE_NAME);
         if (APR_STATUS_IS_ENOENT(service_set))
             service_set = SERVICE_UNSET;
     }
index c4839bdcae8132659516de2cfcf39fdb60e276da..41929e308fc4effb49cb92f3ba63fb1a4bd1619d 100644 (file)
@@ -83,7 +83,10 @@ apr_status_t ap_registry_delete_value(const char *key, const char *name);
 
 #define SERVICE_APACHE_RESTART 128
 
-#define DEFAULT_SERVICE_NAME AP_SERVER_BASEPRODUCT
+#ifndef AP_DEFAULT_SERVICE_NAME
+#define AP_DEFAULT_SERVICE_NAME "Apache2"
+#endif
+
 #define SERVICECONFIG9X "Software\\Microsoft\\Windows\\CurrentVersion\\RunServices"
 #define SERVICECONFIG "System\\CurrentControlSet\\Services\\%s"
 #define SERVICEPARAMS "System\\CurrentControlSet\\Services\\%s\\Parameters"