I don't know about monit, but if you start the service with upstart, a simple 'restart' directive will auto-restart the process if it dies. Is there some other port you can check on to see if your app is alive?
On Thu, Feb 16, 2012 at 5:05 AM, Angelo Chen <[email protected]>wrote: > Hi, > > I have a simple nodejs that to be loaded by Monit, this app does not > have http so this will not work: > > check host resizer with address 127.0.0.1 > if failed port 8080 protocol HTTP > > how to check this kind of nodejs app? thanks, > > Angelo > > -- > 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 > -- 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
