« »
2/16/2012

[Snippet] Cross-platform .pid management for NodeJS

... and by cross-platform I mean of course "cross-unix".

I wrote the following snippets because I wanted to use the same tools in my development and production environnements to manage my apps (bye bye initd on Debian & launchd on Mac). Since my recent switch from Forever (too buggy even manipulated with an handmade web ui) to Supervisord I haven't found an option to configure Supervisord to do the heavy lifting of pid management for me (at the time of this writing it doesn't even seem possible). So here we are:


In CoffeeScript:
« »
 
 
Made with on a hot august night from an airplane the 19th of March 2017.