BrightcoveOS/Diamond — pull request #656 by bhepple (2014-06-25 23:54:07+00:00)
Title: Update diamond

If diamond dies for any reason it leaves the lockfile /var/local/subsys/diamond and the pidfile /var/run/diamond.pid sitting on the disc. This prevents future attempts to 'service diamond start'. This change checks that diamond is still alive before looking at the lockfile. If it is not alive, the lockfile is zapped and diamond can then be started. Tested on RHEL5 as

/etc/init.d/diamond [start|stop|status]
service diamond [start|stop|status]