chrome/updater/test/service/win/updater_test_service.py
def SvcDoRun(self):
    """Called by service framework to start this service."""

    try:
      logging.info('%s starting...', self._svc_name_)
      servicemanager.LogMsg(servicemanager.EVENTLOG_INFORMATION_TYPE,
                            servicemanager.PYS_SERVICE_STARTED,
                            (self._svc_name_, ''))
      self.ReportServiceStatus(win32service.SERVICE_RUNNING)
      self._xmlrpc_server = UpdaterTestXmlRpcServer()
      self._xmlrpc_server.run()
      servicemanager.LogInfoMsg(self._svc_name_ + ' - Ended')
    except pywintypes.error as err:
      logging.exception(err)
      servicemanager.LogErrorMsg(err)
      self.ReportServiceStatus(win32service.SERVICE_ERROR_SEVERE)
Called by service framework to start this service.
Called by service framework to start this service.
Called by service framework to start this service .
def SvcDoRun(self):
    try:
      logging.info('%s starting...', self._svc_name_)
      servicemanager.LogMsg(servicemanager.EVENTLOG_INFORMATION_TYPE,
                            servicemanager.PYS_SERVICE_STARTED,
                            (self._svc_name_, ''))
      self.ReportServiceStatus(win32service.SERVICE_RUNNING)
      self._xmlrpc_server = UpdaterTestXmlRpcServer()
      self._xmlrpc_server.run()
      servicemanager.LogInfoMsg(self._svc_name_ + ' - Ended')
    except pywintypes.error as err:
      logging.exception(err)
      servicemanager.LogErrorMsg(err)
      self.ReportServiceStatus(win32service.SERVICE_ERROR_SEVERE)
def SvcDoRun ( self ) : try : logging . info ( '%s starting...' , self . _svc_name_ ) servicemanager . LogMsg ( servicemanager . EVENTLOG_INFORMATION_TYPE , servicemanager . PYS_SERVICE_STARTED , ( self . _svc_name_ , '' ) ) self . ReportServiceStatus ( win32service . SERVICE_RUNNING ) self . _xmlrpc_server = UpdaterTestXmlRpcServer ( ) self . _xmlrpc_server . run ( ) servicemanager . LogInfoMsg ( self . _svc_name_ + ' - Ended' ) except pywintypes . error as err : logging . exception ( err ) servicemanager . LogErrorMsg ( err ) self . ReportServiceStatus ( win32service . SERVICE_ERROR_SEVERE )
Called by service framework to start this service.
Called by service framework to start this service .
"""Called by service framework to start this service."""
self