Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Graceful server shutdown when running without a console
[CDO] Graceful server shutdown when running without a console [message #509344] Fri, 22 January 2010 07:52 Go to next message
Fredrik Bruzelius is currently offline Fredrik BruzeliusFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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


Re: [CDO] Graceful server shutdown when running without a console [message #509397 is a reply to message #509348] Fri, 22 January 2010 11:26 Go to previous message
Fredrik Bruzelius is currently offline Fredrik BruzeliusFriend
Messages: 5
Registered: July 2009
Location: Sweden
Junior Member
Thanks, Eike!

Seems like the option of running the console on a port should do the trick nicely, at least for daemonizing under Linux.

/ Fredrik
Previous Topic:[CDO] Persisting cross-referenced models
Next Topic:Re: [Teneo] Generate CDO - Hibernate OR Mapping
Goto Forum:
  


Current Time: Tue Apr 23 11:16:52 GMT 2024

Powered by FUDForum. Page generated in 0.03510 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top