processName="进程名称"

    procnum=`ps -ef|grep ${processName}|grep -v grep|awk '{print $2}'`
    if [ "${procnum}" = "" ]//为空则为没有此进程
    then
      //dosomething restart
    else
        echo Process is running!
    fi 

然后用crontab 定时调度这个脚本