mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
12.46.2007 7133dad37e38750796afdab4f26200a824c28391
opends/src/quicksetup/org/opends/quicksetup/CurrentInstallStatus.java
@@ -68,6 +68,8 @@
  private String ldapsUrl;
  private static boolean lockPathInitialized;
  /**
   * The constructor of a CurrentInstallStatus object.
   *
@@ -222,6 +224,16 @@
  public static boolean isServerRunning()
  {
    boolean isServerRunning;
    if (!lockPathInitialized)
    {
      String lockDirectory = Utils.getPath(Utils.getInstallPathFromClasspath(),
      org.opends.server.util.ServerConstants.LOCKS_DIRECTORY);
      System.setProperty(
        org.opends.server.util.ServerConstants.PROPERTY_LOCK_DIRECTORY,
        lockDirectory);
      lockPathInitialized = true;
    }
    String lockFile =
      org.opends.server.core.LockFileManager.getServerLockFileName();
    StringBuilder failureReason = new StringBuilder();