[CDO] Graceful server shutdown when running without a console [message #509344] |
Fri, 22 January 2010 07:52 |
Fredrik Bruzelius Messages: 5 Registered: July 2009 Location: Sweden |
Junior Member |
|
|
Hi,
We are just getting started working on integrating CDO. In this, I have managed to get a CDO server running using PostgreSQL 8.4 for object storage. I have bundled the required plugins and built the CDO server as an Eclipse product, and I am able to run it just like any other Eclipse platform product.
Now, what I want to do is to run the CDO server as a daemon under Linux, or as a service under Windows. This means I will not have access to the osgi console, and will not be able to give the 'close' command as the examples show.
I have played around with various kill signals in Linux, but none of them seems to trigger a 'close', i.e. a graceful shutdown.
Is there any out-of-the-box solution for achieving this, or if not, does anyone have any other suggestions for achieving what I need to do?
A nice weekend to you all!
/ Fredrik Salomonsson
|
|
|
Re: [CDO] Graceful server shutdown when running without a console [message #509348 is a reply to message #509344] |
Fri, 22 January 2010 08:14 |
|
Hi Fredrik,
I searched the Equinox forum and found this thread:
http://www.eclipse.org/forums/index.php?t=msg&goto=10077 7 . There I
found this link: http://tid-osgimanager.forge.os4os.org/ which I have
not tried myself.
I also found this promising article from the Band XI folks:
http://bandxi.com/exposure/eclipsecon2008/264/M1-SettingUpAR emotePlatform.pdf
A simpler solution might be to just add a port number argument to the
-console command line option. Compare
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html
Cheers
/Eike
----
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Fredrik Salomonsson schrieb:
> Hi,
>
> We are just getting started working on integrating CDO. In this, I
> have managed to get a CDO server running using PostgreSQL 8.4 for
> object storage. I have bundled the required plugins and built the CDO
> server as an Eclipse product, and I am able to run it just like any
> other Eclipse platform product.
>
> Now, what I want to do is to run the CDO server as a daemon under
> Linux, or as a service under Windows. This means I will not have
> access to the osgi console, and will not be able to give the 'close'
> command as the examples show.
>
> I have played around with various kill signals in Linux, but none of
> them seems to trigger a 'close', i.e. a graceful shutdown.
>
> Is there any out-of-the-box solution for achieving this, or if not,
> does anyone have any other suggestions for achieving what I need to do?
>
>
> A nice weekend to you all!
>
>
> / Fredrik Salomonsson
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03510 seconds