#!/bin/sh

while :
do

PROCESS_NUM=`ps aux | grep "/opt/dynamsoft/DynamsoftService/DynamsoftService -cert" | grep -v "grep" | wc -l` 

if [ $PROCESS_NUM -eq 0 ]; then
	/opt/dynamsoft/DynamsoftService/DynamsoftService -cert&
fi

sleep 3s
done
