Rewrite rabbit init scripts

Change-Id: I6748577e71c0e2be10a9298b9691c335e5be45c5