[bf1942] PID
Scratch Monkey
ScratchMonkey at SewingWitch.com
Thu Mar 13 03:23:31 EST 2003
--On Wednesday, March 12, 2003 5:46 PM -0600 Dark Bobo
<rickbuford at greeblesnort.com> wrote:
> are you talking about something like:
> while (true)
> do <insert bf_start_script here>
More like
echo $$ > bf1942.pid
LOGFILE=${HOME}/log/console.log
while true
do
DATE=`date +"%Y%m%d%H%M%S"`
if [ -f ${LOGFILE} ]; then
mv ${LOGFILE} ${LOGFILE}.${DATE}
gzip ${LOGFILE}.${DATE}
fi
bf1942_lnxded +game BF1942 -dedicated 1 +port 14567 > ${LOGFILE} 2>&1
sleep 5
done
This is what you run with su and screen from your boot script. This is what
you kill with "kill `cat bf1942.pid`".
More information about the Bf1942
mailing list