Checkigng if rabbitmq has started and setting a timeout.