Katello/katello — pull request #575 by xsuchy (2012-09-04 11:53:44+00:00)
Title: 758651 - check if thin port is free before starting thin

This does not check if 'thin' really use specified port (although it can be
done by similar for-loop after thin start), because I find it redundant.
It just check if those ports are free, just before thin is started.

As side effect, the init script is not so verbose. And pid files are
correctly deleted when script finish and in case "thin stop" will not work
(which happen sometime), it is killed by sending SIGTERM and SIGKILL.