def SvcStop(self):
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
win32event.SetEvent(self.hWaitStop)
_exit_status = of.broker.broker.stop_broker("Shutting down the Broker service")
self.ReportServiceStatus(win32service.SERVICE_STOPPED)
os.exit(_exit_status)
评论列表
文章目录