tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r831860 - /tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java
Date Mon, 02 Nov 2009 11:00:01 GMT
Author: kkolinko
Date: Mon Nov  2 11:00:01 2009
New Revision: 831860

URL: http://svn.apache.org/viewvc?rev=831860&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47881
Fix processing of "startd" and "stopd" arguments, when they are not alone.
Patch by Qingyang Xu

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java?rev=831860&r1=831859&r2=831860&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/Bootstrap.java Mon Nov  2 11:00:01 2009
@@ -401,11 +401,11 @@
             }
 
             if (command.equals("startd")) {
-                args[0] = "start";
+                args[args.length - 1] = "start";
                 daemon.load(args);
                 daemon.start();
             } else if (command.equals("stopd")) {
-                args[0] = "stop";
+                args[args.length - 1] = "stop";
                 daemon.stop();
             } else if (command.equals("start")) {
                 daemon.setAwait(true);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message