Merged functionality from the JSON listener init script for RHEL and SuSE into a single file.