someone could give me an example of how they are starting up MRC on a Pi or linux bbs and maybe a script that monitors it and restarts if needed.
I use the following:
--------------------
#!/bin/bash
##### Config Begin #####
path="/home/pi/mystic"
client="./mrc_client.py"
server="tbbs.homeip.net 5000"
###### Config End ######
while true
do
client_count=$(ps -ef | grep $client | grep -v grep | wc -l | awk '{print $1}')
if [ "$client_count" == "0" ]
then
cd $path
$client $server >> $path/data/logs/mrc_client.log 2>&1 &
fi
sleep 1
done
--------------------
--
Karl
The Search BBS
--- Mystic BBS v1.12 A31 (Raspberry Pi)
* Origin: The Search BBS (21:1/161)