only restart mongo if config has changed