#!/bin/bash


search_pid=`ps -ef|grep -v 'grep'|grep -v 'sh' |grep -c 'kplcors-vrsgw'`

echo "kplcors-vrsgw: $search_pid"
  
if [ $search_pid -eq 0 ]  
then  
  cd /home/kpl-cors/vrs-gw&& ./kplcors-vrsgw -cmd-addr=:5010 -config-file=plugs-conf.json -uuidfile=app.uuid &
  TIMEIDSTR=$(date "+%Y%m%d%H%M%S")
  echo "kplcors-vrsgw $TIMEIDSTR 启动" >> startup.log
fi

