[ 
http://issues.ops4j.org/browse/PAXRUNNER-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748#action_12748
 ] 

Leen Toelen commented on PAXRUNNER-290:
---------------------------------------

All that is needed is the wrapper.conf file, the config.ini (for equinox) stays 
the same. I haven't tested felix/knoplerfish/... or any other approach.

Where can I find more info on the laboratory?

> Java service wrapper
> --------------------
>
>                 Key: PAXRUNNER-290
>                 URL: http://issues.ops4j.org/browse/PAXRUNNER-290
>             Project: Pax Runner
>          Issue Type: New Feature
>          Components: scripts
>            Reporter: Leen Toelen
>            Assignee: Alin Dreghiciu
>            Priority: Minor
>
> It would be neat to have pax runner also create the 
> scripts/directories/binaries to install/start/...  as a java service wrapper 
> service. This is how my config works for equinox:
> wrapper.exe
> installservice.bat
> lib/wrapper.jar
> lib/wrapper.dll
> configuration/config.ini
> configuration/wrapper.conf
> plugins/***.jar
> installservice.bat:
> wrapper.exe -i configuration/wrapper.conf
> wrapper.conf:
> # Java Application
> wrapper.java.command=C:/Program Files/Java/jdk1.6.0_10/bin/java.exe
> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
> wrapper.java.classpath.1=./lib/wrapper.jar
> wrapper.java.classpath.2=./plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=./lib
> #JVM timeout property
> wrapper.ping.timeout=30
> # Java Additional Parameters
> wrapper.java.additional.1=-Dosgi.noShutdown=true 
> wrapper.java.additional.2=-Xdebug
> wrapper.java.additional.3=-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
> wrapper.java.additional.4=-Dcom.sun.management.jmxremote.port=3333 
> wrapper.java.additional.5=-Dcom.sun.management.jmxremote.ssl=false 
> wrapper.java.additional.6=-Dcom.sun.management.jmxremote.authenticate=false
> wrapper.java.additional.7=-Xms128m
> wrapper.java.additional.8=-Xmx512m
> wrapper.java.additional.9=-XX:+HeapDumpOnOutOfMemoryError
> wrapper.java.additional.10=-Dfelix.fileinstall.dir=./plugins
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
> # Application parameters.  Add parameters as needed starting from 1
> wrapper.app.parameter.1=org.eclipse.equinox.launcher.Main
> wrapper.app.parameter.2=-console 2401 
> wrapper.app.parameter.3=-clean
> #********************************************************************
> # 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=INFO
> # Log file to use for wrapper output logging.
> wrapper.logfile=logs/wrapper.log
> # Format of output for the log file.  (See docs for formats)
> wrapper.logfile.format=TLPM
> # Log Level for log file output.  (See docs for log levels)
> wrapper.logfile.loglevel=INFO
> #wrapper.debug=TRUE
> # 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=1
> # Log Level for sys/event log output.  (See docs for log levels)
> wrapper.syslog.loglevel=INFO
> #********************************************************************
> # Wrapper Windows Properties
> #********************************************************************
> # Title to use when running as a console
> [email protected]@
> #********************************************************************
> # Wrapper Windows NT/2000/XP 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=*******************
> # Display name of the service
> wrapper.ntservice.displayname=*******************
> # Description of the service
> wrapper.ntservice.description=*******************
> # 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
> # Allow the service to interact with the desktop.
> wrapper.ntservice.interactive=false
> #********************************************************************
> # Wrapper Exit Properties
> #********************************************************************
> wrapper.on_exit.10=RESTART
> wrapper.on_exit.11=RESTART

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to