Well, forever does not help when you not only need something that restarts the script on error, but a real startup script (which starts the node service when the server reboots).
I wrote a simple init script for this purpose (with logging and user switching) for sysvinit: https://github.com/nicokaiser/node-init Nico Am Donnerstag, 15. März 2012 16:06:08 UTC+1 schrieb Flavio Del Bianco: > > I can't install it for problems with versions. I tryed but I get errors > after written the command > > npm install forever > > > Il giorno giovedì 15 marzo 2012 15:00:45 UTC+1, g sambolic ha scritto: >> >> Try with forever: >> http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever >> >> Dana ponedjeljak, 12. ožujka 2012. 16:02:20 UTC+1, korisnik Flavio Del >> Bianco napisao je: >>> >>> Hi, I'm learning nodejs and I had a doubt in how I keep alive a >>> webserver without running it everytime like $ node myserver.js? and >>> how it can connect alone every time the server get on like it does >>> apache. >> >> -- 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
