Possible Duplicates:
How to keep program running after ssh disconnection.
How can I use ssh to run a command on a remote Unix machine and exit before the command completes?
I am running a mongo server on a production machine. I access it via an ssh console. If I run the mongo server, it runs in the foreground. If I close the SSH window on my client, the mongo process dies on the server.
Even if I run it as "mongod &" in the background, it still dies if the connection is lost.
How do I run this daemon correctly so that it does not depend on an active SSH session?
edit: using ubuntu 10 console as the server