home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 2233 
 Janis Kracht to All 
 finally :) 
 28 Apr 19 00:00:12 
 
MSGID: 1:261/38.0 f15a0930
TZUTC: -0500
CHARSET: LATIN-1
If your BBBS is being hit time after time with bots, this script may fix it
for 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.. :)

=====Start script======
#!/bin/bash
cd /home/bbbs
check_process() {
  echo "$ts: checking $1" >>check.log
    [ "$1" = "" ]  && return 0
    [ `pgrep -n $1` ] && return 1 || return 0
  }

      while [ 1 ]; do
        # timestamp
          ts=`date +%T`

            echo "$ts: begin checking..." >>check.log
            check_process "bbbsd"
[ $? -eq 0 ] && echo "$ts: not running, restarting..." && `./telnetnode.sh >
/dev/null`
sleep 5
done
=========End Script========

Notes:
The line that starts with "[ $? -eq 0 ] && echo "$ts: not running," wraps in
this message, so make sure that is all on one line.

If you can't copy this script for whatever reason, let me know and I'll send
it to you via email or Fidonet.

If you remove the references to "check.log", this script will write to your
screen, like this:

23:55:13: begin checking...
23:55:13: checking bbbsd
23:55:19: begin checking...
23:55:19: checking bbbsd
23:55:24: begin checking...
23:55:24: checking bbbsd


Take care,
Janis

--- BBBS/Li6 v4.10 Toy-4
 * Origin: Prism bbs (1:261/38)
SEEN-BY: 1/123 14/5 15/0 2 19/33 36 34/999 90/1 103/705 104/57 106/201
SEEN-BY: 116/18 120/331 123/140 124/5016 128/2 130/803 153/7715 154/10
SEEN-BY: 203/0 218/700 221/0 222/2 226/17 229/354 426 452 1014 230/150
SEEN-BY: 230/152 240/1120 5832 249/206 317 250/1 261/38 100 266/512
SEEN-BY: 267/155 275/100 280/464 5003 282/1031 1056 291/1 111 292/854
SEEN-BY: 317/3 320/119 219 322/757 340/400 342/13 200 393/68 396/45
SEEN-BY: 423/120 712/848 770/1 801/161 189 2452/250 3634/12 5020/1042
PATH: 261/38 396/45 280/464 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca