蓝眼网盘定制版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
346 B

#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
TANK_DIR=$(dirname $DIR)
EXE_PATH=$TANK_DIR/tank
EDASPID=`ps -ef | grep "$EXE_PATH"|grep -v grep |head -n 1 | awk '{print $2}'`
if [ -z $EDASPID ];
then
echo "Cannot find $EXE_PATH."
else
kill -9 $EDASPID
echo $EXE_PATH
echo 'Shutdown tank successfully.'
fi