[FADCA] Re: Routing changes
F1TE
f1te at f1te.org
Wed Nov 24 12:21:41 EST 2004
Hello Chuck
Look the shell scrip /usr/sbin/fpac.sh
This function post alert message to sysop via BBS.
73, Lucien
My fpac.sh
#!/bin/bash
DIR=`dirname $0`
PATH=$DIR:$PATH
# log file
LOG=/var/log/fpac
# serial port for watchdog
# WDOG_PORT="/dev/ttyS4"
WDOG_PORT=""
# callsign of the sysop
SYSOP="F1TE"
# route/callsign of the notified BBS
CONNECT="rose0 f5kbw-1 2080833501"
export PATH SYSOP CONNECT
case "$1" in
restart)
$0 stop && $0 start
;;
stop)
echo -n "Halting FPAC :"
for PROC_NAME in fpacnode fpacshell
do
PID=`/sbin/pidof -x $DIR/$PROC_NAME`
if [ -n "$PID" ]; then
kill -TERM $PID
sleep 4
fi
done
echo -n " [flexd]"
kill -TERM `/sbin/pidof -x $DIR/flexd`
echo -n " [route]"
kill -TERM `/sbin/pidof -x $DIR/fpacroute`
echo -n " [stats]"
kill -TERM `/sbin/pidof -x $DIR/fpacstat`
echo -n " [wp]"
kill -TERM `/sbin/pidof -x $DIR/fpacwpd`
echo -n " [pad]"
kill -KILL `/sbin/pidof -x $DIR/fpad`
echo -n " [wdog]"
kill -TERM `/sbin/pidof -x $DIR/fpacwdog`
echo " ok"
;;
status)
echo -e "\nStatus of FPAC :"
for PROC_NAME in fpacwdog fpad fpacwpd fpacstat fpacroute flexd
do
PID=`/sbin/pidof -x $DIR/$PROC_NAME`
if [ -n "$PID" ]; then
echo -e "$PROC_NAME \tis running"
else
echo -e "$PROC_NAME \tis not running"
fi
done
echo
;;
fpad)
while [ 1 ]
do
$DIR/fpad -d
sleep 1
done
;;
fpacwpd)
while [ 1 ]
do
$DIR/fpacwpd -d
sleep 1
done
;;
-t)
FPAC_BG="yes"
export FPAC_BG
echo -n "Starting FPAC :"
if [ "_$WDOG_PORT" != "_" ] ; then
echo -n " [wdog]"
$DIR/fpacwdog -p 2 $WDOG_PORT >> $LOG 2>&1
fi
echo -n " [pad]"
$DIR/fpac.sh fpad >> $LOG 2>&1 &
echo -n " [wp]"
$DIR/fpac.sh fpacwpd >> $LOG 2>&1 &
echo -n " [stats]"
$DIR/fpacstat >> $LOG 2>&1
echo -n " [route]"
$DIR/fpacroute >> $LOG 2>&1
echo -n " [flexd]"
$DIR/flexd >> $LOG 2>&1
(sleep 60 ; /bin/date | $DIR/mailbbs -d $SYSOP -t "System Reboot"
$CONNECT) &
echo " ok"
;;
*)
echo -n "Starting FPAC :"
if [ "_$WDOG_PORT" != "_" ] ; then
echo -n " [wdog]"
$DIR/fpacwdog -p 2 $WDOG_PORT >> $LOG 2>&1
fi
echo -n " [pad]"
$DIR/fpad >> $LOG 2>&1
echo -n " [wp]"
$DIR/fpacwpd >> $LOG 2>&1
echo -n " [stats]"
$DIR/fpacstat >> $LOG 2>&1
echo -n " [route]"
$DIR/fpacroute >> $LOG 2>&1
echo -n " [flexd]"
$DIR/flexd >> $LOG 2>&1
(sleep 60 ; /bin/date | $DIR/mailbbs -d $SYSOP -t "System Reboot"
$CONNECT) &
echo " ok"
;;
esac
exit 0
----- Original Message -----
From: "Chuck Hast" <wchast at gmail.com>
To: "F1TE" <f1te at f1te.org>; "Bernard Pidoux" <pidoux at ccr.jussieu.fr>;
<fpac at f6fbb.org>; "FADCA" <fadca at mailman.qth.net>
Sent: Wednesday, November 24, 2004 1:06 PM
Subject: Routing changes
> Folks I have changed the routing, now the calls going to 20808xxnnn
> and 20809xxnnn
> are routing to f5kbw-9, now that I have connectivity with both sites.
>
> Lucien, Bernard,
> When fpac starts up I get the following line after it all starts up
>
> usage: mail_bbs [-d callsign at bbs] [-f filename] [-i sender] [-t title]
> [-v] port bbs-callsign [[via] digis...]
>
> I look in the fpac.sh and there is something called mailbbs being called.
> What is it and what is it for ???
>
> --
> Chuck Hast
> To paraphrase my flight instructor;
> "the only dumb question is the one you DID NOT ask resulting in my going
> out and having to identify your bits and pieces in the midst of torn
> and twisted metal."
More information about the FADCA
mailing list