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