We should probably look into unifying this and the nailgun mechanism into some sort of "run a daemon" lib, at some point.
Take care of stale pidfiles for pants server
Review Request #1791 — Created Feb. 18, 2015 and submitted
|benjyw, davidt, patricklaw|
Use psutil to detect a pidfile for a process that is no longer active.
An even more robust algorithm would check the commandline for some kind of fingerprint of the right process like we do in the nailgun task executor.
Repeated invocations of:./pants server kill <PID>
Thanks so much for this!