tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Fredianelli <alessandro.frediane...@italtbs.com>
Subject Re: procrun and NT service
Date Tue, 26 Apr 2005 11:05:14 GMT
@echo off
call setenv.bat

echo %CLASSPATH%
pause

set line=
set line=%line% --ClassPath=%CLASSPATH%
set line=%line% --Description=ClinicalIntegrationServer
set line=%line% --Install=c:\cis\xqueue\service.exe
set line=%line% --DisplayName=CIS
set line=%line% 
--JvmOptions="-Djava.security.policy=cis.policy;-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"
set line=%line% --JvmMx=20M --JvmMs=20M


set line=%line% --Startup=auto
set line=%line% --User=.\Administrator
set line=%line% --Password=pwd

set line=%line% --LogPath=c:\cis\xqueue\log
set line=%line% --LogPrefix=service.log
set line=%line% --StdOutput=c:\cis\xqueue\log\out.log.txt
set line=%line% --StdError=c:\cis\xqueue\log\err.log.txt

set line=%line% --JavaHome=c:\java
set line=%line% --Jvm=C:\java\jre\bin\server\jvm.dll


set line=%line% --StartPath=c:\cis\xqueue
set line=%line% --StartMode=jvm
set line=%line% --StartClass=xqueue.server.WorkFlowManager
set line=%line% --StartParams=start

set line=%line% --StopPath=c:\cis\xqueue
set line=%line% --StopClass=xqueue.server.WorkFlowManager
set line=%line% --StopParams=stop
set line=%line% --StopMode=jvm


service //IS//CIS %line%
set line=


that's how i create the service.
If i set startmode=java in order to have the possibility to specify an 
account different than LocalSystem,
procrun doesent start.

With the settings showed my server starts and after starting process the 
service ends without any error.


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


Mime
View raw message