In linux i can run daemons as non priveleged user. But what about windows services?
How can i configure restarting service on changing of some files? I prefer minimal difference in behaviour between dev, test and prod as much as possible. Why i must notify daemon on update, while it can watch for files changes? Watching uses events and do not reducing performance. 2013/1/13 Jacob Groundwater <ja...@nodefly.com> > Ultimately if you want your application to come back after a restart, > which I think is sensible for fault-tolerant deployments you have to > involve the os provided init service. > > Most of these services can be configured o restart you process on demand. > Why involve more processes at that point. > > Auto restarts are great while developing but I do not see the need in > production. If you have an automated deployment, which again I consider a > good practice, you can just restart the app post-update. > > - Jacob Groundwater > > On 2013-01-12, at 2:48 PM, José F. Romaniello <jfromanie...@gmail.com> > wrote: > > I'd ask you the inverse, why would you reinvent the service function of > windows or *nix daemons in node? It's there, it is easy to use, the OS > comes with it. These things do a pretty good job starting the service when > booting, and trying to restart when it exist according the exit status. > > > > 2013/1/12 犀利な天使 <sairi.na.ten...@gmail.com> > >> What benefits in installing as service? That needs administrative rights, >> but this is too.. >> >> >> 2013/1/13 José F. Romaniello <jfromanie...@gmail.com> >> >> For windows I use nssm, I wrote this thing to make it easy to install >>> node apps >>> >>> https://github.com/jfromaniello/winser >>> >>> El sábado, 12 de enero de 2013, 犀利な天使 escribió: >>> >>>> Unfortunately, "forever" not working on windows :( >>>> But i think it may be usefull with --watchDirectory argument and >>>> ".foreverignore" file in. >>>> And i hope this is also works: >>>> -c "node --harmony" >>>> >>>> Too many conditions.. >>>> >>>> 2013/1/13 Faysal Banna <degre...@gmail.com> >>>> >>>>> forever start -a -w app.js >>>> >>>> >>>> >>>> -- >>>> 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 nodejs@googlegroups.com >>>> To unsubscribe from this group, send email to >>>> nodejs+unsubscr...@googlegroups.com >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>> -- >>> 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 nodejs@googlegroups.com >>> To unsubscribe from this group, send email to >>> nodejs+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> -- >> 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 nodejs@googlegroups.com >> To unsubscribe from this group, send email to >> nodejs+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en