From: cgi (no email)
Date: Fri Mar 29 2002 - 14:44:23 EST
Dear Markus Rietzler,
Aspseek 1.2.7 still crashing
How do you use your script below
#/bin/sh
cd /opt/aspseek/sbin
log=/httpd/data/aspseek/db/run.log
echo "aspseek started on " `date` > $log
while true
do
sleep 3
./searchd -R -D
numofproces=`ps -ef | grep -v "grep" | grep -c searchd`
while test "$numofproces" -ne "0"
do
# nop
sleep 1
numofproces=`ps -ef | grep -v "grep" | grep -c searchd`
done
echo "searchd restarted on " `date` >> $log
done
echo "searchd ended on " `date` >> $log
echo "searchd daemon ended"
|
|
|