Commit d26d60ee authored by 白秀江's avatar 白秀江

更新conf-service/start.sh

parent 089ae294
#!/bin/bash #!/bin/bash
cd `dirname $0` cd `dirname $0`
BIN_DIR=`pwd` BIN_DIR=`pwd`
SERVICE_NAME=$(echo $SERVER_NAME | tr -d [0-9])
SERVICE_NAME=${SERVICE_NAME%*-}
cd .. cd ..
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/conf CONF_DIR=$DEPLOY_DIR/conf
...@@ -13,8 +16,8 @@ if [ -z "$SERVER_NAME" ]; then ...@@ -13,8 +16,8 @@ if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
fi fi
SERVICE_NAME=$(echo $SERVER_NAME | tr -d [0-9])
SERVICE_NAME=${SERVICE_NAME%*-}
PIDS=`ps -f | grep java | grep "$CONF_DIR" |awk '{print $2}'` PIDS=`ps -f | grep java | grep "$CONF_DIR" |awk '{print $2}'`
if [ -n "$PIDS" ]; then if [ -n "$PIDS" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment