code: public ReturnCode startStatus() {
          System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStarting"), serverName));
  
          // Use initialized bootstrap configuration to find the server lock file.
          ServerLock serverLock = ServerLock.createTestLock(bootProps);
          ReturnCode rc = ReturnCode.OK;
          String pid = getPID();
  
          if (serverLock.lockFileExists()) {
              ProcessStatus ps = pid == null ? new FileShareLockProcessStatusImpl(consoleLogFile) : new PSProcessStatusImpl(pid);
              rc = serverLock.waitForStart(ps);
              if (rc == ReturnCode.OK) {
                  ServerCommandClient scc = new ServerCommandClient(bootProps);
                  rc = scc.startStatus(serverLock);
              }
          } else {
              // we have no server lock file, despite the fact that we're supposed to be looking
              // for a server in the process of starting...
              rc = ReturnCode.ERROR_SERVER_START;
          }
  
          if (rc == ReturnCode.OK) {
              if (pid == null) {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStarted"), serverName));
              } else {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStartedWithPID"), serverName, pid));
              }
          } else if (rc == ReturnCode.SERVER_COMMAND_PORT_DISABLED_STATUS) {
              if (pid == null) {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("warning.serverStartedCommandPortDisabled"), serverName));
              } else {
                  System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("warning.serverStartedWithPIDCommandPortDisabled"), serverName, pid));
              }
              rc = ReturnCode.SERVER_UNKNOWN_STATUS;
          } else {
              System.out.println(MessageFormat.format(BootstrapConstants.messages.getString("info.serverStartException"), serverName));
          }
  
          return rc;
      }
docs: Check the server status
  
  @return