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)
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.