[
https://issues.apache.org/jira/browse/GERONIMO-4394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jack Cai updated GERONIMO-4394:
-------------------------------
Attachment: GERONIMO-4394_Jack_1219.patch
Updated patch to simplify the batch file usage. I guess I need to add some doc
here to explain the usage -
1. Run the following command in the bin dir from command line. This will
install the geronimo service with the name "geronimosrv" using default
parameters. Users can also specify the username/password/rmiport used to
shutdown the service. The usage information can be displayed by simply issue
the command without any arguments.
service_pr.bat intall
2. Now there're two ways to start/stop the service: (a)Using Windows' service
control panel. There is a new service shown as "Apache Geronimo Service -
geronimosrv" there. (b)Launch the geronimosrvw.exe. This brings up the config
GUI for the service. Click start/stop to control the service there. If
geronimosrvw.exe is launched with parameter "//MS//", then a tray icon will be
added.
3. To remove the service, issue -
service_pr.bat remove
4. If user launches geronimosrv.exe, this will start Geronimo in the console
(instead of as a service).
In fact, geronimosrv.exe and geronimosrvw.exe are renamed from pronsrv.exe and
pronmgr.exe of Apache Commons Daemon. So all the doc of Commons Daemon applis
(see here: http://commons.apache.org/daemon/procrun.html).
I've tested under Windows XP 32bit and Windows 2008 64bit. Both look OK with no
MS Visual Studio installed.
> Run Geronimo as a Windows service out of box
> --------------------------------------------
>
> Key: GERONIMO-4394
> URL: https://issues.apache.org/jira/browse/GERONIMO-4394
> Project: Geronimo
> Issue Type: New Feature
> Security Level: public(Regular issues)
> Components: commands
> Environment: Windows platforms
> Reporter: Jack Cai
> Assignee: Jack Cai
> Fix For: 2.2
>
> Attachments: GERONIMO-4394_Jack_1219.patch, geronimosrv.exe,
> geronimosrvw.exe, osservice.zip
>
>
> Although there is already an option provided by the Java Service Wrapper,
> some users are more interested in seeing something similar to what is
> provided by Tomcat. Provided that we can easily take the technology from
> Tomcat (http://commons.apache.org/daemon/procrun.html), I'm keen to implement
> this same thing for Geronimo. The advantage of using Apache Commons procrun
> is that -
> 1. Out-of-box experience, no need to download and install a third party
> component;
> 2. Tray icon that further improves usability.
> Eventually we would think to provide this "run as a service" capability for
> Linux/Unix platforms, but Windows would be a good start.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.