How do I use runit to manage my custom made node.js service?

Posted by apphacker on Server Fault See other posts from Server Fault or by apphacker
Published on 2011-01-16T21:18:44Z Indexed on 2011/01/16 21:55 UTC
Read the original article Hit count: 179

Filed under:

My service is very basic, just an HTTP service. I just want it to restart automatically when it quits because of an error. I figured I could use runit to do this, but it seems like the runit docs mostly talk about how to convert your entire init.d to runit. I want to preserve init.d and just use runit for my one service.

I was looking at these docs.

Thanks.

EDIT: I think this is pointing in the right direction, I guess I just need to know how to make a service now.

© Server Fault or respective owner

Related posts about autorun