Modify run and stop
[vfc/nfvo/driver/ems.git] / ems / microservice-standalone / src / main / assembly / stop.bat
1 @REM\r
2 @REM Copyright (C) 2015 CMCC, Inc. and others. All rights reserved. (CMCC)\r
3 @REM\r
4 @REM Licensed under the Apache License, Version 2.0 (the "License");\r
5 @REM you may not use this file except in compliance with the License.\r
6 @REM You may obtain a copy of the License at\r
7 @REM\r
8 @REM         http://www.apache.org/licenses/LICENSE-2.0\r
9 @REM\r
10 @REM Unless required by applicable law or agreed to in writing, software\r
11 @REM distributed under the License is distributed on an "AS IS" BASIS,\r
12 @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 @REM See the License for the specific language governing permissions and\r
14 @REM limitations under the License.\r
15 @REM\r
16 @echo off\r
17 title stopping dac-service\r
18 \r
19 set HOME=%~dp0\r
20 set Main_Class="org.onap.vfc.nfvo.emsdriver.EmsDriverApplication"\r
21 \r
22 echo ================== emsdriver-service info  =============================================\r
23 echo HOME=$HOME\r
24 echo Main_Class=%Main_Class%\r
25 echo ===============================================================================\r
26 \r
27 echo ### Stopping emsdriver-service\r
28 cd /d %HOME%\r
29 \r
30 rem set JAVA_HOME=D:\WorkSoftware\jdk1.7.0_60\r
31 for /f "delims=" %%i in ('"%JAVA_HOME%\bin\jcmd"') do (\r
32   call find_kill_process "%%i" %Main_Class%\r
33 )\r
34 exit\r