LP 1435966: Clark Kent should write lock file after it forks.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 24 Mar 2015 16:49:39 +0000 (12:49 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 24 Mar 2015 17:45:17 +0000 (17:45 +0000)
commit6f297addfb7089879ea30340c1662eea4699cca0
tree76d64a6d6f9a2c44c27304c41e82a04d1690e4b0
parent733040f9f4593807b4f8eff0a21a7fb0496251e9
LP 1435966: Clark Kent should write lock file after it forks.

Rearrange the code in clark-kent.pl so that the lock/pid file is
opened and written to after the reporter daemonizes itself.  This
way, the pid in the file can actually be used to stop the running
reporter daemon.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/reporter/clark-kent.pl