Enhanced do_start() implementation in Python management script
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 9 Nov 2010 18:17:50 +0000 (18:17 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 9 Nov 2010 18:17:50 +0000 (18:17 +0000)
commitbd3c2f9d5612799c077492e2b574c4d9551d7c66
tree56b236239ddeacbcbe062004c80c091bf8c9a672
parent2bc866a1c9a5feea8f9d3a6095021fe2f79a008c
Enhanced do_start() implementation in Python management script

Unclean shutdowns and fork() misery can create PID files that have
no actual process behind them. Instead of just trusting the PID file, check
for the running PID; if the process is not running, then remove the PID file
and actually start the service.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2070 9efc2488-bf62-4759-914b-345cdb29e865
src/python/opensrf.py.in