A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new
./configure && make && sudo make install
node-supervisor --help to learn more.
- Re-attach to a process by pid. If the supervisor is backgrounded, and then disowned, the child will keep running. At that point, the supervisor may be killed, but the child will keep on running. It'd be nice to have two supervisors that kept each other up, and could also perhaps run a child program.
- Run more types of programs than just "node blargh.js".
- Be able to run more than one program, so that you can have two supervisors supervise each other, and then also keep some child server up.
- When watching, it'd be good to perhaps bring up a new child and then kill the old one gently, rather than just crashing the child abruptly.
- Keep the pid in a safe place, so another supervisor can pull it out if told to supervise the same program.