WebFaction is a shared host, so you cannot start mongod as a system service.
Instead, use the --fork when starting mongod , for example:
mongod --dbpath ~/webapps/mongo_db/mongodb/ --port 31706 --fork \ --logpath $HOME/logs/user/mongo_db.log
When you need to stop it, run:
mongod --dbpath ~/webapps/mongo_db/mongodb/ --port 31706 --shutdown
Hope this helps!
source share