szaszm commented on code in PR #1993:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1993#discussion_r2321753048


##########
minifi_main/MiNiFiMain.cpp:
##########
@@ -266,25 +266,29 @@ int main(int argc, char **argv) {
     return -1;
   }
 #endif
-  // Determine MINIFI_HOME
-  const auto minifiHome = determineMinifiHome(logger);
-  if (minifiHome.empty()) {
-    // determineMinifiHome already logged everything we need
+  const auto locations = minifi::determineLocations(logger);
+  if (!locations) {
+    // determineLocations already logged everything we need
     return -1;
   }
-  utils::FileMutex minifi_home_mtx(minifiHome / "LOCK");
+  
minifi::utils::Environment::setEnvironmentVariable(std::string(MINIFI_WORKING_DIR).c_str(),
 locations->working_dir_.string().c_str());
+
+
+  logger->log_info("MiNiFi Locations={}", *locations);

Review Comment:
   ```suggestion
     
minifi::utils::Environment::setEnvironmentVariable(std::string(MINIFI_WORKING_DIR).c_str(),
 locations->working_dir_.string().c_str());
     logger->log_info("MiNiFi Locations={}", *locations);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to