Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 93944 invoked from network); 19 Mar 2010 02:08:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Mar 2010 02:08:34 -0000 Received: (qmail 49097 invoked by uid 500); 19 Mar 2010 02:08:34 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 49003 invoked by uid 500); 19 Mar 2010 02:08:34 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 48994 invoked by uid 99); 19 Mar 2010 02:08:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 02:08:34 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,STOX_REPLY_TYPE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of billwbarker@verizon.net designates 206.46.173.15 as permitted sender) Received: from [206.46.173.15] (HELO vms173015pub.verizon.net) (206.46.173.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 02:08:24 +0000 Received: from BillPC ([unknown] [72.87.168.21]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0KZI00LB6B909280@vms173015.mailsrvcs.net> for dev@commons.apache.org; Thu, 18 Mar 2010 21:07:49 -0500 (CDT) Message-id: From: "Bill Barker" To: "Commons Developers List" References: <25aac9fc1003181213k54706e43g9e066588e357ba75@mail.gmail.com> <4BA27F09.2090805@apache.org> <25aac9fc1003181318m6a4e30d7r9f6630fc8f6abf2a@mail.gmail.com> In-reply-to: <25aac9fc1003181318m6a4e30d7r9f6630fc8f6abf2a@mail.gmail.com> Subject: Re: [DAEMON] Procrun documentation Date: Thu, 18 Mar 2010 19:07:38 -0700 MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MIMEOLE: Produced By Microsoft MimeOLE V14.0.8089.726 X-Virus-Checked: Checked by ClamAV on apache.org -------------------------------------------------- From: "sebb" Sent: Thursday, March 18, 2010 1:18 PM To: "Commons Developers List" Subject: Re: [DAEMON] Procrun documentation > On 18/03/2010, Mladen Turk wrote: >> On 03/18/2010 08:13 PM, sebb wrote: >> >> > As people may have noticed, I've been trying to update the procrun >> > documentation. >> > >> > >> >> Cool, thanks. >> But that doesn't mean you are free to delay the >> release forever :) >> Let's push the 1.0.3 out and work on improvements. >> > > Yes, fine. > > It was when I started trying to test the 1.0.3 build on Win/XP that I > realised that I had no idea how to. So I decided to document as I > found things out - and I think I'm nearly there. > >> > There are a few details that need clarifying: >> > - the Start/Stop mode can be jvm, Java or exe. What do these each do? >> > >> > >> >> jvm loads the jvm in process, java is just like .exe but it >> figures out the .exe from default JVM installed. >> > > So effectively Java mode figures out the value for StartImage/StopImage? > Yes, it will override any user supplied StartImage or StopImage. > Are the options Classname and Method used in Java mode? > Or just Classname? Or neither? > Java mode uses ClassPath, Classname, options, JvmMs, JvmMx, JvmSs (as well as StartParams/StopParams). Since it is executing java.exe, the Method is ignored (it will use 'static void main(String [])'). > Presumably these are not used in exe mode, as they would not make sense. > Yes, exe is not restricted to running Java. It can be used to wrap any .exe file as a service. As a result, the entire command line needs to be specified in StartParams/StopParams, and the Java specific options like Classpath, StartClass, StopClass, etc are ignored. I've used this in the past to convert other non-java programs into services. >> > >> > Does Procrun support Daemon mode? If so, how is it configured? I could >> > not get it to work with the SimpleDaemon example. >> > >> > >> >> It doesn't. procrun does not use java daemon code. > > OK. > > So Procrun and Jsrv have no common API at all? > They have no common API at all. This isn't too surprising, since they exist to fill two completely non-overlapping needs. Jsvc is so that the application (e.g. Tomcat) can perform some privileged operations as root (e.g. bind to port < 1024), and then switch identity to a non-privileged user. Since Windows doesn't have the concept of privileged ports, there isn't much use for it on Windows, so it largely remained non-functional in Windows until Mladen fixed it in 1.0.2. Procrun is to allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a service that can be started when the machine boots and will continue to run with no user logged onto the machine. On *nix machines there isn't much use for this, since you just place a script in /etc/init.d. >> >> Regards >> -- >> ^TM >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org