Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 394653

Summary: Running orion in background stumbling blocks and suggested solution
Product: [ECD] Orion Reporter: Adrian Aichner <adrian.aichner>
Component: ServerAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 5.0 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Comment orion.ini -console option, with explanation none

Description Adrian Aichner CLA 2012-11-20 08:32:54 EST
Created attachment 223749 [details]
Comment orion.ini -console option, with explanation

http://wiki.eclipse.org/Orion/Server_admin_guide#Starting_the_server
suggests to start it with

orion -console

Trying to run it in the background the process gets stopped due to lack of an interactive terminal.

So let's try this:

orion &

The process still gets stopped.

This is because the orion.ini files included in the .zip downloads (at least for Windows and Linux) include the -console switch!

This is somewhat unexpected since above instructions specifically suggest to supply the -console command-line option.

This is why I did not even think of checking the orion.ini file (thanks to the kind soul on #eclipse-orion which get me on the right track).

I would suggest to leave above admin guide documentation as is, but to comment out the -console switch in orion.ini and shown in attached patch.

Thanks for listening
Comment 1 John Arthorne CLA 2012-11-22 16:50:24 EST
The main reason for the console is that with no console there is no way to do an orderly shutdown of the server. I.e., the next section in the admin guide says to invoke "stop" on the console to shutdown. At the very least we can update the admin guide to describe both "interactive" and "background" modes of running.
Comment 2 Adrian Aichner CLA 2012-11-22 18:51:50 EST
Perhaps a HUP signal should do same action as osgi close command?
At any rate current orion.ini will conflict with background Operation.
Comment 3 Adrian Aichner CLA 2014-02-02 08:39:44 EST
The addition of
http://wiki.eclipse.org/Orion/Server_admin_guide#Running_disconnected_from_a_shell_on_Unix
which works fine for me on my local server running HEAD master closes this bug for me.