fix the logs and exec rabbit in mode detached