|
From: Amad F. <af...@va...> - 2005-12-08 09:34:52
|
Hi, I am trying to run CruiseControl as service. There are few problems, 1. It only works in console mode but can't set the working.dir. It's always assumed to be Wrapper.exe's directory to be the working directory. 2. Service doesn't start. I get 1075 when starting service. Following is my wrapper.conf, #******************************************************************** # Wrapper Properties #******************************************************************** ###### Wrapper working dir see http://wrapper.tanukisoftware.org/doc/english/prop-working-dir.html ##### wrapper.working.dir=C:/Projects/cruise # Java Application wrapper.java.command=java # Java Main class wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=C:\cruisecontrol-2.3.1/main/lib/*.jar wrapper.java.classpath.2=C:\apache-ant-1.6.5\bin\../lib/*.jar wrapper.java.classpath.3=C:\cruisecontrol-2.3.1/main/dist/cruisecontrol.jar wrapper.java.classpath.4=C:\Program Files\Java\jdk1.5.0_06\jre/lib/*.jar wrapper.java.classpath.5=C:\cruisecontrol-2.3.1/contrib/NtServiceWrapper/lib /*.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path=C:/cruisecontrol-2.3.1/contrib/NtServiceWrapper/li b # Java Additional Parameters wrapper.java.additional.1=-Djavax.management.builder.initial=mx4j.server.MX4 JMBeanServerBuilder # Initial Java Heap Size (in MB) wrapper.java.initmemory=16 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=CruiseControl wrapper.app.parameter.2=-port wrapper.app.parameter.3=11024 wrapper.app.parameter.4=-configfile wrapper.app.parameter.5=C:\Projects\cruise\config.xml # Port which the native wrapper code will attempt to connect to wrapper.port=1777 #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=DEBUG # Log file to use for wrapper output logging. wrapper.logfile=C:/Projects/cruise/logs/wrapper.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=DEBUG # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=10m # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=10 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=ERROR #******************************************************************** # Wrapper NT Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.ntservice.name=CruiseControl # Display name of the service wrapper.ntservice.displayname=CruiseControl Service (v2.3.1) # Description of the service wrapper.ntservice.description=Continuous integration builds and tests with JUnit, Ant and CruiseControl. # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=AUTO_START # Priority at which the service is run. NORMAL, LOW, HIGH, or # REALTIME wrapper.ntservice.process_priority=NORMAL # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false Any help would be appreciated. |