Create directories for DSA
[holmes/dsa.git] / dmaap-dsa-standalone / src / main / assembly / bin / stop.bat
diff --git a/dmaap-dsa-standalone/src/main/assembly/bin/stop.bat b/dmaap-dsa-standalone/src/main/assembly/bin/stop.bat
new file mode 100644 (file)
index 0000000..bfde362
--- /dev/null
@@ -0,0 +1,34 @@
+@REM\r
+@REM Copyright 2017 ZTE Corporation.\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM     http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+\r
+@echo off\r
+title stopping engine-d-service\r
+\r
+set HOME=%~dp0\r
+set Main_Class="org.onap.holmes.rulemgt.RuleActiveApp"\r
+\r
+echo ================== engine-d-service info =============================================\r
+echo HOME=$HOME\r
+echo Main_Class=%Main_Class%\r
+echo ===============================================================================\r
+\r
+echo ### Stopping engine-d-service\r
+cd /d %HOME%\r
+\r
+for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (\r
+  call find_kill_process "%%i" %Main_Class%\r
+)\r
+exit
\ No newline at end of file