Bug 429293 - Provide a prunsrv.exe compatible shutdown method for EclipseStarter
Summary: Provide a prunsrv.exe compatible shutdown method for EclipseStarter
Status: NEW
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Launcher (show other bugs)
Version: 3.9.0 Kepler   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 04:25 EST by Jens Reimann CLA
Modified: 2015-09-24 04:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Reimann CLA 2014-02-28 04:25:08 EST
When using Apache Commons Daemon the prunsrv.exe wrapper, which bridges between Java and the Windows service layer, calls a static method for starting and a static method for stopping.

However both start and stop method must have a method signature of "void method ( String [])".

While one can argue about the sense of this, it is as it is. Adding a "shutdown" method to "org.eclipse.core.runtime.adaptor.EclipseStarter" which has this method signature would allow to use this class directly with Apache Commons Daemon prunsrv.exe.
Comment 1 Thomas Watson CLA 2014-02-28 09:04:56 EST
(In reply to Jens Reimann from comment #0)
> When using Apache Commons Daemon the prunsrv.exe wrapper, which bridges
> between Java and the Windows service layer, calls a static method for
> starting and a static method for stopping.
> 
> However both start and stop method must have a method signature of "void
> method ( String [])".
> 
> While one can argue about the sense of this, it is as it is. Adding a
> "shutdown" method to "org.eclipse.core.runtime.adaptor.EclipseStarter" which
> has this method signature would allow to use this class directly with Apache
> Commons Daemon prunsrv.exe.

It seems you were asking for a start/stop method with (String[]) and then a "shutdown" method.  Perhaps a patch would be better illustration of what you are requesting?
Comment 2 Peter Taylor CLA 2015-09-24 04:50:12 EDT
Here's a post about how SCADA worked around this issue:
http://dentrassi.de/2014/02/28/eclipse-equinox-as-a-windows-service/