2 # Copyright 2016 ZTE Corporation.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
20 # Copyright 2016 [ZTE] and others.
22 # Licensed under the Apache License, Version 2.0 (the "License");
23 # you may not use this file except in compliance with the License.
24 # You may obtain a copy of the License at
26 # http://www.apache.org/licenses/LICENSE-2.0
28 # Unless required by applicable law or agreed to in writing, software
29 # distributed under the License is distributed on an "AS IS" BASIS,
30 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 # See the License for the specific language governing permissions and
32 # limitations under the License.
36 HOME=`cd $DIRNAME/; pwd`
37 Main_Class="org.openo.carbon.bpel.Wso2BpelApplication"
39 echo ================== wso2bpel-service info =============================================
41 echo Main_Class=$Main_Class
42 echo ===============================================================================
47 function save_service_pid(){
48 service_pid=`ps -ef | grep $Main_Class | grep -v grep | awk '{print $2}'`
49 echo @service_pid@ $service_pid
52 function kill_service_process(){
60 echo @C_CMD@ kill -9 $service_pid