Bug in runbb.sh
Scott Wilson <[email protected]> Thu, 15 Jan 2004 12:56:29 -0600 (CST)
| Newsgroups | gmane.network.bb4.devel |
|---|---|
| Message-ID | <[email protected]> |
I noticed a bug in the runbb.sh script. (In Solaris anyway)
It works fine if you use "runbb.sh stop" or "runbb.sh start", but the
stop code ends up killing the runbb.sh itself.
Here is the problematic code, starting on line 120:
(I apologize for bad line wraps)
if [ "$BBSERVER" = "TRUE" ]
then
$PS | $GREP $BBHOME | $GREP -v grep | $GREP -v
bb-display >> $BBTMP/runbb.sh.$$
$PS | $GREP $BBHOME | $GREP -v grep | $GREP -v
bb-network >> $BBTMP/runbb.sh.$$
$PS | $GREP $BBHOME | $GREP -v grep | $GREP -v bbd
>> $BBTMP/runbb.sh.$$
#$PS | $GREP bbrun | $GREP "$BBUSER" | $GREP -v
grep | $GREP -v runbb.sh
>> $BBTMP/runbb.sh.$$
else
if [ "$BBLOCAL" = "TRUE" ]
then
$PS | $GREP $BBHOME | $GREP -v grep |
$GREP -v bb-local >> $BBTMP/runbb.sh.$$
fi
fi
In older versions of the code, (BB 1.9c) you simply had
$PS | $GREP $BBHOME | $GREP -v grep | $GREP -v runbb.sh >>
$BBTMP/runbb.sh.$$
$PS | $GREP bbrun | $GREP "$BBUSER" | $GREP -v grep |
$GREP -v runbb.sh >> $BBTMP/runbb.sh.$$
Replacing the 12 lines from BB 1.9e with the 2 lines from BB 1.9c works
just fine for the BB 1.9e client, and I'm pretty sure the server. (I
haven't revved my server yet.) The "$GREP -v runbb.sh" in particular is
critical as it keeps the runbb.sh from killing itself.
Scott Wilson Manager / Lead System Administrator
[email protected] NSIT - TaRT - Systems & Servers
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.