HPCC-8570 Remove Sentinel check to stop process

If blocks in killed() were causing processes to not stop if
the sentinel file was not created.

Added removal of pid file on process ending following wait.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>
HPCC-8570 Moved location of rm of pid file in killed

Rm of pid file was happened at latest point when good instead
of earliest point when possibly no good in killed()

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>
HPCC-8570 Created common function for kill

Removed usages of killall and moved all init_* scripts to use
the new kill_process function.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>
Merge pull request #3865 from pschwartz/HPCC-8570-init-fail-to-stop

HPCC-8570 Remove Sentinel check to stop process

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>