#!/bin/bash


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

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

