I followed the instructions on http://docs.webfaction.com/software/mongodb.html and the mongodb service stops after the ssh window is closed. How do I get it to continue running after the ssh connection is closed?
asked Oct 05 '12 at 19:10
If you launch it with an ampersand on the end of the line then it will launch as a background process, e.g. using the example from the docs:
You could set up a cron job to ensure it's running every so often, which will then serve a double purpose of ensuring it's running and launch it initially (or launch it manually initially then set up a cron job).
You can find information on using cron on WebFaction at the following link (which also contains a link for more advanced cron help): http://docs.webfaction.com/software/general.html#scheduling-tasks-with-cron