#!/bin/bash


search_pid=`ps -ef|grep -v 'grep'|grep -v 'sh' |grep -c 'kpl-serv-app'`

echo "kpl-serv-app: $search_pid"

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

