Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E319975D for ; Fri, 20 Apr 2012 14:33:56 +0000 (UTC) Received: (qmail 24438 invoked by uid 500); 20 Apr 2012 14:33:55 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 24319 invoked by uid 500); 20 Apr 2012 14:33:54 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Delivered-To: moderator for user@commons.apache.org Received: (qmail 43960 invoked by uid 99); 20 Apr 2012 11:24:42 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.nabbefeld@gmx.de designates 213.165.64.23 as permitted sender) X-Authenticated: #15661691 X-Provags-ID: V01U2FsdGVkX18PXR4c6ysPceMBHK2aZCW0rvsS+29LX6amYQYFBx zs9x9LFN2Pba1M Message-ID: <4F91476C.9010507@gmx.de> Date: Fri, 20 Apr 2012 13:24:28 +0200 From: Peter Nabbefeld User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Firefox/11.0 SeaMonkey/2.8 MIME-Version: 1.0 To: user@commons.apache.org Subject: [daemon] Problems installing & starting a service with procrun Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hello! Getting different problems using commons-daemon/procrun.exe: - Sometimes cannot start the service, probably depends on what I'm changing which way (using batch files or the management console etc.), also seems to be dependend on what I'm doing first. As a result of this, wrapper looks instable. Probably I'll investigate it further, if I'll have some more time. - When I've got the service running (not stable, though), I've also got a command box shown, which I'd like to disappear. - stdout/stderr had not been logged. This is my command: C:\MyServiceDir>commons-daemon\prunsrv.exe //IS//ServiceID --DisplayName="Name of Service" --Description="Service description" --Install="C:\MyServiceDir\commons-daemon\prunsrv.exe" --Classpath=C:\MyServiceDir\lib\xalan.jar;C:\MyServiceDir\lib\activation.jar;MyServer.jar --DependsOn=RpcSs ++DependsOn=Nla ++DependsOn=BITS --Jvm="C:\jdk1.6.0\jre\bin\server\jvm.dll" --JvmMx=512 --JvmOptions="-Dsome_option=value" --StartPath="C:\MyServiceDir" --Startup=auto --StartParams="-para1:val1;-para2:val2" ++StartParams=-test:"some path" --ServiceUser=".\MyAdmin" --ServicePassword=MyPassword --StartMode=jvm --StartClass=my.class.for.Service --StartMethod=start --StopMode=jvm --StopClass=my.class.for.Service --StopMethod=stop --StdOutput=auto --StdError=auto --LogPath="C:\MyServiceDir\log" --LogLevel=Debug --LogJniMessages=1 --Type=interactive --PidFile="pid" What am I doing wrong? Kind regards Peter --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org