Finish the new pack folder things.

This commit is contained in:
Zic 2017-12-23 23:18:47 +08:00
parent 1f01b89c4c
commit 4474dd429c
4 changed files with 8 additions and 16 deletions

View File

@ -65,6 +65,9 @@ xcopy %GOPATH%\src\tank\build %distPath% /e/h
echo "remove pack"
rmdir /s/q %distPath%\pack
echo "remove service"
rmdir /s/q %distPath%\service
cd %PRE_DIR%
echo check the dist file in %distPath%

View File

@ -1,14 +0,0 @@
#!/bin/bash
EXE_PATH=$GOPATH/bin/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

View File

@ -1,7 +1,8 @@
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
EXE_PATH=$DIR/tank
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 ];

View File

@ -2,7 +2,9 @@
# executable path
DIR="$( cd "$( dirname "$0" )" && pwd )"
EXE_PATH=$DIR/tank
TANK_DIR=$(dirname $DIR)
EXE_PATH=$TANK_DIR/tank
if [ -f "$EXE_PATH" ]; then
nohup $EXE_PATH >/dev/null 2>&1 &