示例#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()
示例#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()
示例#3
0
 def stopActiveServer(self):
     if not NGinxRunOps.isRunning() or self._serverThread is None:
         return
     NGinxRunOps.stopServer(self._serverThread.rootPath)
示例#4
0
 def stopActiveServer(self):
     if not NGinxRunOps.isRunning() or self._serverThread is None:
         return
     NGinxRunOps.stopServer(self._serverThread.rootPath)