Change the folder structure.
This commit is contained in:
14
build/service/shutdown.sh
Normal file
14
build/service/shutdown.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
EXE_PATH=$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 successfully.'
|
||||
fi
|
Reference in New Issue
Block a user