If your BBBS is being hit time after time with bots, this script may fix it fo
you... I've been running this script now for about 15 minutes, and everytime Yandex kills bbbsd this script runs my script that brings it back up.. :)
check_process "bbbsd"
[ $? -eq 0 ] && echo "$ts: not running, restarting..." && `./telnetnode.sh > /dev/null`
If your BBBS is being hit time after time with bots, this script may fix it f >> you... I've been running this script now for about 15 minutes, and everytime >> Yandex kills bbbsd this script runs my script that brings it back up.. :)
[...]
check_process "bbbsd"
[ $? -eq 0 ] && echo "$ts: not running, restarting..." && `./telnetnode.sh > >> /dev/null`
I take it that telnetnode.sh (re)starts your bbbsd daemon?
I don't recall, does
BBBS create any bsy files that would prevent bbbsd from reloading until any such files were taken care of?
I have tightened down iptables to limit the multiple telnet attempts. Which ha
helped but I still occasionally run out of available nodes. Even though the busy nodes are cleared more quickly now.
I take it that telnetnode.sh (re)starts your bbbsd daemon?
Yes, it does. Here is telnetnode.sh:
===cut here===
#/bin/sh
cd /home/bbbs
./bbbsd 4 15 telnetd:2030 httpd:8090 ftpd:60721 rawd:24555:binkp "quiet" "fork
"uid:bbs" &
===cut here===
I don't recall, does
BBBS create any bsy files that would prevent bbbsd from reloading until any >> such files were taken care of?
It's not like BinkD, if that's what you mean, so it doesn't that I can remember.
I have tightened down iptables to limit the multiple telnet attempts. Which h >> helped but I still occasionally run out of available nodes. Even though the >> busy nodes are cleared more quickly now.
I thought I had as well... but this darn bot from Yandex kept taking it down.. >They did it three times yesterday, which is why I started searching for a good
script to restart a daemon. The script I posted is just perfect IMO. :) Running out of available nodes was exactly the problem over here as well...
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 130:03:07 |
Calls: | 12,960 |
Calls today: | 2 |
Files: | 186,574 |
Messages: | 3,265,981 |