1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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