#!/bin/sh export SERVICE_HOME=/home/cvim/test export SERVICE_NAME=sig-comm-server export SERVICE_VERSION=0.0.1-SNAPSHOT export EXE_NAME=$SERVICE_NAME-$SERVICE_VERSION.jar export PID_NAME=$SERVICE_NAME.pid export SERVICE_PID=$SERVICE_HOME/conf/$PID_NAME cd $SERVICE_HOME ps -eaf | grep $SERVICE_NAME | grep -v grep |wc -l sleep 1 ps -eaf | grep $SERVICE_NAME | grep -v grep