private static boolean isManagerStopped(File directory, boolean locator) {
    try {
      ManagerInfo mi = loadManagerInfo(directory, locator);
      return !OSProcess.exists(mi.getManagerProcessId());
    } catch (UnstartedSystemException ignore) {
      return true;
    } catch (GemFireIOException ex) {
      Throwable cause = ex.getCause();
      if (cause == null) {
        // this happens when the file was zero size
        return false;
      } else if (cause instanceof InvalidClassException) {
        // This happens when we have a serialVersionUID mismatch.
        // We don't want to hide this so throw the exception
        throw ex;
      } else {
        return false;
      }
    }
  }
Gets the status code for the given <code>statusName</code>.

@throws IllegalArgumentException if an unknown status name is given.
geode-core/src/main/java/org/apache/geode/internal/ManagerInfo.java