Esempio n. 1
0
 def monitorServices(self):
     """Monitors all of the external services and makes sure they
     stay running.
     """
     if is_dev_environment():
         log.msg("Skipping check of services; they're not running under "
                 "the supervision of systemd.")
     else:
         d = service_monitor.ensureServices()
         d.addCallback(self._updateRegion)
         d.addErrback(log.err,
                      "Failed to monitor services and update region.")
         return d
Esempio n. 2
0
 def _ensureServices(self, client):
     if client:
         services = yield service_monitor.ensureServices()
         return (client, services)
     return None, None