{"comment":{"created_at":"2011-10-20T20:23:03Z","body":"forever by default will try to run the file supplied with `node`. To run a different process you need to include the `-c` parameter. Try:\r\n\r\n``` bash\r\n  $ forever start -c /usr/local/bin/mongodb-linux-x86_64-2.0.0/bin/mongo\r\n```","updated_at":"2011-10-20T20:23:03Z","url":"https://api.github.com/repos/indexzero/forever/issues/comments/2473857","id":2473857,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d43e8ea63b61e7669ded5b9d3c2e980f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d43e8ea63b61e7669ded5b9d3c2e980f","url":"https://api.github.com/users/indexzero","id":4624,"login":"indexzero"}},"action":"created","issue":{"number":148,"created_at":"2011-10-20T20:20:44Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm trying to run MongoDB with Forever. I can run mongo by itself with the following command:\r\n` /usr/local/bin/mongodb-linux-x86_64-2.0.0/bin/mongod` and it works great. But when I try to run with forever:\r\n`forever start /usr/local/bin/mongodb-linux-x86_64-2.0.0/bin/mongo` it doesn't work. \r\nHere's the error I see in the forever log:\r\n\r\n```\r\nnode.js:134\r\n        throw e; // process.nextTick error, or 'error' event on first tick\r\n        ^\r\nSyntaxError: Unexpected token ILLEGAL\r\n    at Module._compile (module.js:397:25)\r\n    at Object..js (module.js:408:10)\r\n    at Module.load (module.js:334:31)\r\n    at Function._load (module.js:293:12)\r\n    at Array.<anonymous> (module.js:421:10)\r\n    at EventEmitter._tickCallback (node.js:126:26)\r\nwarn: Forever detected script exited with code: 1\r\n```\r\n\r\nAny idea what I may be doing wrong?","comments":1,"title":"running MongoDB with Forever","updated_at":"2011-10-20T20:23:03Z","url":"https://api.github.com/repos/indexzero/forever/issues/148","id":2008972,"assignee":null,"milestone":null,"closed_at":"2011-10-20T20:23:03Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/238dabe9f0d4da12c85c694811bb28ce?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"238dabe9f0d4da12c85c694811bb28ce","url":"https://api.github.com/users/geddesign","id":515722,"login":"geddesign"},"html_url":"https://github.com/indexzero/forever/issues/148","labels":[],"state":"closed"},"legacy":{"issue_id":2008972,"comment_id":2473857}}