#!/bin/sh
ria=$(ps -ef | grep com.palmtx.main.Main | awk '{if($3==1)print $3}')
tdate=`date +%Y/%m/%d-%T`
if [ "$ria" = "" ]
then
echo "$tdate ria is need start"
cd /home/2qi_home/riaServer
./start.sh &
echo "$tdate ria is need start" >> /home/ria.log
else
echo "$tdate ria is not need start"
echo "$tdate ria is running and don't need start" >>/home/ria.log
fi
exit 0

被折叠的 条评论
为什么被折叠?



