PDA

View Full Version : Detach from startup process


tmart
04-16-2008, 12:57 PM
Maybe there is a way to do this already...

Sometimes it takes a while to statup an app, especially if there have been extensive changes. It would be nice if we could kick off a startup from the GUI or from the command line and allow the startup to continue asynchronously. For example, I could kick off a startup of a large app that is under AppLogic development (say I have renamed some instances and/or added new instances to an HA configuration)... then log out and log back in later and confirm that the app had come up (or not). Right now, I need to hang onto the network connection or the startup will fail.

Thanks.

Chris
04-16-2008, 02:18 PM
I personally use screen which will allow you to do what your looking for.

http://en.wikipedia.org/wiki/GNU_Screen

PeterNic
06-18-2008, 06:10 PM
A simple way to do this is to run a small Linux server on the grid (GSC in 1.2/2.1/2.2, VPS in 2.3) on which you have an ssh key to the grid. You can run screen on it; connect to it on and off.

(Long term: we are looking at the possibility of providing a background option for all long-running commands -- similar to adding "&" at the end of a Linux command)

Regards,
-- Peter