Factor common code into new "start_mdmon".