Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / util / AAISystemExitUtil.java
index c76b542..1d27578 100644 (file)
@@ -24,9 +24,13 @@ import org.onap.aai.dbmap.AAIGraph;
 public class AAISystemExitUtil {
 
        public static void systemExitCloseAAIGraph(int code) {
+               if ("true".equals(System.getProperty("org.onap.aai.graphadmin.started"))) {
+               return;
+               }
                if (AAIGraph.isInit()) {
                        AAIGraph.getInstance().graphShutdown();
                }
                System.exit(code);
+
        }
 }