Commit 68511ea8 authored by 白秀江's avatar 白秀江

更新conf-service/start.sh

parent 499a7338
...@@ -11,8 +11,10 @@ $DEPLOY_DIR/bin/pull.sh ...@@ -11,8 +11,10 @@ $DEPLOY_DIR/bin/pull.sh
if [ -z "$SERVER_NAME" ]; then if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
SERVICE_NAME=`tr -d [0-9-]`
fi fi
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
echo "ERROR: The $SERVER_NAME already started!" echo "ERROR: The $SERVER_NAME already started!"
......
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