On 19 February 2012 12:29, Prashanth <[email protected]> wrote: > You should run nodejs as daemon. > http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever
That is probably one of the worst links you could point someone at, it does introduce a practice which is only acceptable when one knows what they are doing. Namely that is: "when it crashed, just restart!" Anyone should first make all possible effort to design their program properly and debug all they can possibly debug. The kind of tools you are pointing people at are only good for dealing with a production situation where they code could be crashing due to some very very obscure bug and production environment just needs a quick aid until the bug is found and fixed. For a beginner the simplest and guaranteed to work approach would to use `nohup`. Other approaches are going to be all platform dependent. Well, the original question mentions that they are using Ubuntu, there one could use Upstart as specified here: http://howtonode.org/deploying-node-upstart-monit But that example uses /etc/init/ directory, in fact on Ubuntu one can put Upstart scripts in ~/.init/ and should be able to run those without root previlages and without doing sudo in the script itself. Also, if you do read the above guide - the second section on Monit is not quite the best thing you can do with it ... Cheers, -- Ilya -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
