Last modified: 2013-12-03 20:23:18 UTC
It would be very nice to have the ability to register the pid of js/api/server.js via a pidfile. start-stop-daemon has -p|--pidfile parameter pointing to a file such as /var/run/parsoid.pid You would have to trap unexpected nodejs crash of the main process which should delete the pidfile when node is shutdowning.
Change 98004 had a related patch set uploaded by Arlolra: Register a pidfile for api/server.js https://gerrit.wikimedia.org/r/98004
It was suggested to use --make-pidfile