Bug 1042239 creating a promise which resolves when the system has started r=Mossop