Uploaded image for project: 'Chukwa (retired)'
  1. Chukwa (retired)
  2. CHUKWA-58

Watchdog is using $CHUKWA_HOME while PidFile.java is using CHUKWA_PID_DIR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      PidFile is using this logic to found where to create the pid file.

      String chukwaPath = System.getProperty("CHUKWA_HOME");
      StringBuffer pidFilesb = new StringBuffer();
      String pidDir = System.getenv("CHUKWA_PID_DIR");
      if (pidDir == null)

      { pidDir = chukwaPath + File.separator + "var" + File.separator + "run"; }

      Watchdog should do something similar instead of using CHUKWA_HOME.
      Also, watchdog is difficult to maintain so will be good to create one function that is doing all the necessary steps
      and call that function for all processes that watchdog should watch for.

      Attachments

        1. CHUKWA-58.patch
          3 kB
          Eric Yang

        Activity

          People

            eyang Eric Yang
            jboulon Jerome Boulon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: