Create directories for DSA
[holmes/dsa.git] / dmaap-dsa-standalone / src / main / assembly / bin / run.bat
diff --git a/dmaap-dsa-standalone/src/main/assembly/bin/run.bat b/dmaap-dsa-standalone/src/main/assembly/bin/run.bat
new file mode 100644 (file)
index 0000000..1ea81ab
--- /dev/null
@@ -0,0 +1,41 @@
+@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 holmes-rulemgt-service\r
+\r
+set RUNHOME=%~dp0\r
+echo ### RUNHOME: %RUNHOME%\r
+echo ### Starting rulemgt-service\r
+set main_path=%RUNHOME%..\\r
+cd /d %main_path%\r
+set JAVA="%JAVA_HOME%\bin\java.exe"\r
+set port=8312\r
+set jvm_opts=-Xms50m -Xmx128m\r
+rem set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n\r
+set class_path=%main_path%;%main_path%holmes-rulemgt.jar\r
+echo ### jvm_opts: %jvm_opts%\r
+echo ### class_path: %class_path%\r
+\r
+%JAVA% -classpath %class_path% %jvm_opts% org.onap.holmes.rulemgt.RuleActiveApp server %main_path%conf/rulemgt.yml\r
+\r
+IF ERRORLEVEL 1 goto showerror\r
+exit\r
+:showerror\r
+echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!\r
+echo After checking, press any key to close \r
+pause\r
+exit
\ No newline at end of file