fork from https://launchpad.net/mysql-replication-listener