#!/bin/bash


search_pid=`ps -ef|grep -v 'grep'|grep -v 'sh' |grep -c 'kplcloud-websvr'`

echo "kplcloud-websvr: $search_pid"
  
if [ $search_pid -eq 0 ]  
then  
  cd /home/kpl01/gnss-cloud && ./kplcloud-websvr &
  TIMEIDSTR=$(date "+%Y%m%d%H%M%S")
  echo "kplcloud-websvr $TIMEIDSTR 启动" >> startup.log
fi

