|
From: Leif M. <le...@ta...> - 2003-11-04 09:10:04
|
Prashant, >1.On unix systems what is the difference between wrapper begin started in >"console" more and "start" more.. >Do both install the application as daemon? what happens if the wrapper is >started in console mode in one xterm window, and then I close the same >window (/session)? >Will the application continue to run as daemon, meaning can i log out and >expect it to be running? > > The "console" command will run the Wrapper in the current console. You will not be able to type "exit" in the console unless you first stop the Wrapper. If you kill the console via any other means then the Wrapper and its JVM will also be stopped because they are child processes of the console. The benefit of console mode is that you are able to see the Wrapper's output in the console as well as have the ability to press CTRL-C and CTRL-\ within that console. The "start" command is used to launch the Wrapper as a detached process. When running as a detached process, you will immediately regain control of the console used to launch the Wrapper. You will also be able to now close the console and the Wrapper will stay running. The drawbacks are that the only way to see the output is to "tail -f wrapper.log" and you will need to use the "stop" command to stop the wrapper and the "dump" command to request a thread dump. No matter how the Wrapper is launched, the "stop" and "dump" commands can always be used from another console. You mentioned installing the Wrapper as a daemon. The "start" command will launch the Wrapper as a daemon process, but it will not be restarted when the system is rebooted. This install process is a little different for every platform and depends on what the application being run by the Wrapper actually does. I have described how to do this on Solaris and Debian Linux systems on the following page. If you are using another platform, take a look at these for hints. I would also appreciate instructions for your platform so I can add it to the docs. http://wrapper.tanukisoftware.org/doc/english/launch-nix.html >2. What does "dump" mode do? > > Try it :-) It tells the Wrapper to in turn prompt the JVM to perform a thread dump. If you launched the Wrapper using the "console" command, you can also do this by pressing CTRL-\ in the console where the Wrapper is running. Cheers, Leif |