From d81c85ca9cc08aa95ce3154cb8442d0a36c27d40 Mon Sep 17 00:00:00 2001
From: adam-m <amalinowski@basistech.com>
Date: Wed, 17 Oct 2012 17:32:02 -0400
Subject: [PATCH] add more logs when starting/stopping solr process

---
 .../src/org/sleuthkit/autopsy/keywordsearch/Server.java      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Server.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Server.java
index b681f02ac1..3169347099 100755
--- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Server.java
+++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Server.java
@@ -258,8 +258,8 @@ void start() throws KeywordSearchModuleException {
             final String SOLR_START_CMD = javaPath + MAX_SOLR_MEM_MB_PAR + " -DSTOP.PORT=8079 -DSTOP.KEY=" + KEY + " "
                     + loggingProperties + " -jar start.jar";
             logger.log(Level.INFO, "Starting Solr using: " + SOLR_START_CMD);
-
             curSolrProcess = Runtime.getRuntime().exec(SOLR_START_CMD, null, solrFolder);
+            logger.log(Level.INFO, "Finished starting Solr");
 
             try {
                 //block, give time to fully start the process
@@ -293,7 +293,10 @@ synchronized void stop() throws KeywordSearchModuleException {
             logger.log(Level.INFO, "Stopping Solr server from: " + solrFolder.getAbsolutePath());
             //try graceful shutdown
             Process stop = Runtime.getRuntime().exec(javaPath + " -DSTOP.PORT=8079 -DSTOP.KEY=" + KEY + " -jar start.jar --stop", null, solrFolder);
+            logger.log(Level.INFO, "Waiting for stopping Solr server");
             stop.waitFor();
+            logger.log(Level.INFO, "Finished stopping Solr server");
+            
             //if still running, forcefully stop it
             if (curSolrProcess != null) {
                 curSolrProcess.destroy();
-- 
GitLab