def SvcDoRun(self):
     self.ReportServiceStatus(win32service.SERVICE_RUNNING)
     running = PlexConnect.startup()
     
     while running:
         running = PlexConnect.run(timeout=10)
     
     PlexConnect.shutdown()
     
     self.ReportServiceStatus(win32service.SERVICE_STOPPED)
Exemplo n.º 2
0
    def SvcDoRun(self):
        self.ReportServiceStatus(win32service.SERVICE_RUNNING)
        running = PlexConnect.startup()

        while running:
            running = PlexConnect.run(timeout=10)

        PlexConnect.shutdown()

        self.ReportServiceStatus(win32service.SERVICE_STOPPED)
 def SvcStop(self):
     self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
     PlexConnect.cmdShutdown()
Exemplo n.º 4
0
 def SvcStop(self):
     self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
     PlexConnect.cmdShutdown()