Other Help Topics :: How do I secure the desktop?



Quote (mikshaw @ June 29 2006,14:43)
One thing you could do is create good passwords and log out when you're not around.
.

If I have a web server running and log out, will that mean the server stops?
No. Unless you started the server without backgrounding it (which is unusual for a server), you don't have to worry about logging out. As long as the operating system is still running, the server should also.
Quote (mikshaw @ April 08 2007,12:50)
No. Unless you started the server without backgrounding it (which is unusual for a server), you don't have to worry about logging out. As long as the operating system is still running, the server should also.

I don't know how one backgrounds a server at start
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

ok, thanks - appreciate the explanation
Next Page...
original here.