Integrate wso2bps
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / distribution / standalone / src / main / assembly / wso2bps-ext / bin / shutdown.bat
diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/shutdown.bat
new file mode 100644 (file)
index 0000000..76b2f58
--- /dev/null
@@ -0,0 +1,34 @@
+@REM\r
+@REM Copyright 2016 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 wso2bpel-service\r
+\r
+set HOME=%~dp0\r
+set Main_Class="org.openo.carbon.bpel.Wso2BpelApplication"\r
+\r
+echo ================== wso2bpel-service info =============================================\r
+echo HOME=$HOME\r
+echo Main_Class=%Main_Class%\r
+echo ===============================================================================\r
+\r
+echo ### Stopping wso2bpel-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