Quote:
Originally Posted by eoc_Jason
It has never died on my forum, but I have had rare instances where it does die every now and then on another forum that I help a guy out with. He is running x86_64, I'm still 32bit. Unfortunatly I could never find any logs or reason for it to die, it was just totally random it seemed.
On my site I use SIM from rfxnetworks (it does service monitoring and will restart a downed service). I just coded a custom addition for searchd. But I've never been notified of it going down (on my site). You could just as easly write a little cron script doing a 'ps aux | grep searchd' type thing... Or maybe something with inittab?
|
here's a short shell script I pieced together based on some of your code
Code:
#!/bin/sh
if test -z "`ps acx|grep searchd`"; then
/etc/rc.d/init.d/searchd start 2> /dev/null > /dev/null || true
fi
cron'd it every minute to keep searchd running. Just checks to see if searchd is running, if not, it starts it.
arn