Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 15174 invoked from network); 18 Mar 2010 17:04:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 17:04:49 -0000 Received: (qmail 92840 invoked by uid 500); 18 Mar 2010 17:04:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92778 invoked by uid 500); 18 Mar 2010 17:04:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92770 invoked by uid 99); 18 Mar 2010 17:04:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 17:04:48 +0000 X-ASF-Spam-Status: No, hits=-1057.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 17:04:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 360FA234C4AB for ; Thu, 18 Mar 2010 17:04:27 +0000 (UTC) Message-ID: <1825978352.346241268931867220.JavaMail.jira@brutus.apache.org> Date: Thu, 18 Mar 2010 17:04:27 +0000 (UTC) From: "David Newcomb (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (DAEMON-148) Incorrect case on parameter causes silent failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Incorrect case on parameter causes silent failure ------------------------------------------------- Key: DAEMON-148 URL: https://issues.apache.org/jira/browse/DAEMON-148 Project: Commons Daemon Issue Type: Bug Components: Procrun Reporter: David Newcomb Fix For: 1.0.3 Unknown parameters passed to procrun halt command line option processing, silently ignoring the other options, then reports as successful. For example: C:\Data\tomcat\bin\tomcat6.exe //US//Tomcat ^ --LogPath C:\Data\tomcat\logs ^ --LogPrefix commons-daemon ^ --LogLevel debug ^ --Description "Apache Tomcat - Company app" ^ --StartClass org.apache.catalina.startup.Bootstrap ^ --StopClass org.apache.catalina.startup.Bootstrap ^ --StartParams start ^ --StopParams stop ^ --DependsOn MySQL ^ --StartMode jvm ^ --StopMode jvm ^ --JvmOptions -Dcatalina.base=C:\Data\tomcat ^ --JvmOptions -Dcatalina.home=C:\Data\tomcat ^ --JvmOptions -Djava.endorsed.dirs=C:\Data\tomcat\endorsed ^ --classpath C:\Data\tomcat\bin\bootstrap.jar ^ --JvmOptions -Djava.io.tmpdir=C:\Data\tomcat\temp ^ --JvmOptions -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager ^ --JvmOptions -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties ^ --JvmOptions -Dcom.sun.management.jmxremote ^ --JvmOptions -Dcom.sun.management.jmxremote.port=8181 ^ --JvmOptions -Dcom.sun.management.jmxremote.authenticate=false ^ --JvmOptions -Dcom.sun.management.jmxremote.ssl=false ^ --JvmOptions -XX:+HeapDumpOnOutOfMemoryError ^ --JvmMs 256 ^ --JvmMx 512 ^ --Jvm c:\data\java\bin\server\jvm.dll ^ --JavaHome c:\data\java ^ --Startup auto The "--classpath C:\Data\tomcat\bin\bootstrap.jar ^" line introduces an invalid command line parameter. It should be --Classpath instead of --classpath. The log reads: [2010-03-18 16:56:00] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized [2010-03-18 16:56:00] [info] Commons Daemon procrun (1.0.3.0) started [2010-03-18 16:56:00] [info] Updating service... [2010-03-18 16:56:00] [error] ( service.c:126 ) The specified service does not exist as an installed service. [2010-03-18 16:56:00] [debug] ( prunsrv.c:507 ) Installing service... [2010-03-18 16:56:00] [info] Service Tomcat name [2010-03-18 16:56:00] [debug] ( prunsrv.c:559 ) Setting service description Apache Tomcat - Quantel Dino [2010-03-18 16:56:00] [info] Service 'Tomcat' installed [2010-03-18 16:56:00] [info] Commons Daemon procrun finished Showing that the installation was successful. However if you load up tomcat6w then you can see in the Java tab that the last option to be processed was "--JvmOptions -Djava.endorsed.dirs...." every other entry after that is ignored. This creates an ordering issue with the command line options. If the LogPath is at the end of the parameter list then no output file will be created. As a result running the service always fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.