Exemplo n.º 1
0
    def redirect_output_streams(self):
        properties = get_properties()

        outFilePath = properties[SERVER_OUT_FILE_KEY]
        if (outFilePath is None or outFilePath == ""):
            outFilePath = SERVER_OUT_FILE

        self._RedirectOutputStreamsToFile(outFilePath)
        pass
Exemplo n.º 2
0
  def redirect_output_streams(self):
    properties = get_properties()

    outFilePath = properties[SERVER_OUT_FILE_KEY]
    if (outFilePath is None or outFilePath == ""):
      outFilePath = SERVER_OUT_FILE

    self._RedirectOutputStreamsToFile(outFilePath)
    pass
Exemplo n.º 3
0
  def SvcDoRun(self):
    scmStatus = SvcStatusCallback(self)

    properties = get_properties()
    self.options.debug = get_value_from_properties(properties, DEBUG_MODE_KEY, self.options.debug)
    self.options.suspend_start = get_value_from_properties(properties, SUSPEND_START_MODE_KEY, self.options.suspend_start)

    self.redirect_output_streams()

    childProc = server_process_main(self.options, scmStatus)

    if not self._StopOrWaitForChildProcessToFinish(childProc):
      return

    remove_file(PID_OUT_FILE)
    pass
Exemplo n.º 4
0
    def SvcDoRun(self):
        scmStatus = SvcStatusCallback(self)

        properties = get_properties()
        self.options.debug = get_value_from_properties(properties,
                                                       DEBUG_MODE_KEY,
                                                       self.options.debug)
        self.options.suspend_start = get_value_from_properties(
            properties, SUSPEND_START_MODE_KEY, self.options.suspend_start)

        self.redirect_output_streams()

        childProc = server_process_main(self.options, scmStatus)

        if not self._StopOrWaitForChildProcessToFinish(childProc):
            return

        remove_file(PID_OUT_FILE)
        pass