diff options
author | sunqi310 <sun.qi310@zte.com.cn> | 2016-11-21 15:17:01 +0800 |
---|---|---|
committer | sunqi310 <sun.qi310@zte.com.cn> | 2016-11-21 15:17:01 +0800 |
commit | 227ce45bc31b48c6707efbca7ca461f0e7ad0b60 (patch) | |
tree | a7a40bf48f76cc2da0026cad42543663ba73cbae /catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh | |
parent | 8c9c4f1296fe54d984249a146544e23564fc0f60 (diff) |
TOSCA-64 Modify shell scripts directory
Change-Id: Ia3fe95057455cd8fb3d4def5106ccf5cb2ea83bd
Issue-id: TOSCA-64
Signed-off-by: sunqi310 <sun.qi310@zte.com.cn>
Diffstat (limited to 'catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh')
-rw-r--r-- | catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh b/catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh deleted file mode 100644 index 841a4401..00000000 --- a/catalog-core/distribution/catalog-standalone/src/main/assembly/stop.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -# -# Copyright 2016 ZTE Corporation. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -DIRNAME=`dirname $0` -HOME=`cd $DIRNAME/; pwd` -Main_Class="org.openo.commontosca.catalog.CatalogApp" - -echo ================== catalog-service info ============================================= -echo HOME=$HOME -echo Main_Class=$Main_Class -echo =============================================================================== -cd $HOME; pwd - -echo @WORK_DIR@ $HOME - -function save_service_pid(){ - service_pid=`ps -ef | grep $Main_Class | grep -v grep | awk '{print $2}'` - echo @service_pid@ $service_pid -} - -function kill_service_process(){ - ps -p $service_pid - if [ $? == 0 ]; then - kill -9 $service_pid - fi -} - -save_service_pid; -echo @C_CMD@ kill -9 $service_pid -kill_service_process;
\ No newline at end of file |