Ejemplo n.º 1
0
    def _handleStopServer(self):
        if not self._serverThread:
            self.mainWindow.updateStatusBar(u'ERROR: Server is not currently active')
            print 'NO ACTIVE SERVER THREAD'
            return

        if not NGinxRunOps.isRunning():
            self.mainWindow.updateStatusBar(u'ERROR: No active NGinx server found')
            print 'NOT RUNNING'
            return

        NGinxRunOps.stopServer(self._serverThread.rootPath)
        self._serverThread = None
        self._updateDisplay()
Ejemplo n.º 2
0
    def _handleStopServer(self):
        if not self._serverThread:
            self.mainWindow.updateStatusBar(
                u'ERROR: Server is not currently active')
            print 'NO ACTIVE SERVER THREAD'
            return

        if not NGinxRunOps.isRunning():
            self.mainWindow.updateStatusBar(
                u'ERROR: No active NGinx server found')
            print 'NOT RUNNING'
            return

        NGinxRunOps.stopServer(self._serverThread.rootPath)
        self._serverThread = None
        self._updateDisplay()
Ejemplo n.º 3
0
 def stopActiveServer(self):
     if not NGinxRunOps.isRunning() or self._serverThread is None:
         return
     NGinxRunOps.stopServer(self._serverThread.rootPath)
Ejemplo n.º 4
0
 def stopActiveServer(self):
     if not NGinxRunOps.isRunning() or self._serverThread is None:
         return
     NGinxRunOps.stopServer(self._serverThread.rootPath)