mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: April 08 2007,19:36 |
|
Most servers I've seen will run in the background by default, so you usually wouldn't need to be concerned about it.
One way to test is to run the server from a terminal. If you can no longer use that terminal interactively (depending on the application, you might need to press enter before you'll get the prompt back) then the server probably doesn't automatically run in the background. If this is the case, you can run the program with an ampersand (&) following it to put it in the background. If the application is already running, you can press Ctrl+z to suspend it. It will present you with a number representing the application, which you can use to background the application (bg 1, for example, will background the first application run from the current shell).
Some applications will close when the parent shell closes, regardless of whether or not it was backgrounded, so backgrounding from an interactive shell is not the ideal way to start a program if you intend to logout afterward. Servers are typically started during the init process, either from one of the /etc/init.d scripts or from /opt/bootlocal.sh
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|