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

@ -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 &