BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Scripting BB startup/shutdown in Red Hat
Yes, bb does own all the processes. Here is a copy of my ps -aef |
grep bb while it's running
bb 7844 1 0 09:28 ? 00:00:00 /usr/local/bb/bb/bin/bbd
bb 7852 1 0 09:28 pts/2 00:00:00 /bin/sh
/usr/local/bb/bb/runbb.sh start
bb 7854 1 0 09:28 pts/2 00:00:00 /bin/sh
/usr/local/bb/bb/runbb.sh start
bb 7861 7852 0 09:29 pts/2 00:00:00
/usr/local/bb/bb/bin/bbrun /usr/local/bb/bb/bin/bb-network.sh
bb 7891 7854 0 09:30 pts/2 00:00:00
/usr/local/bb/bb/bin/bbrun -a /usr/local/bb/bb/bin/bb-display.sh
And Johann, I changed it to use the su without the -, and I still have
the same problems. I think this relates to Red Hat doing something
odd. This worked fine on Fedora and Solaris.
Another clue, the error is:
/usr/local/bb/bb/runbb.sh: line 145: kill: (8524) - Operation not permitted
/usr/local/bb/bb/runbb.sh: line 145: kill: (8524) - Operation not permitted
/usr/local/bb/bb/runbb.sh: line 145: kill: (8524) - Operation not permitted
You can see in my previous PS that 8524 doesn't exist. In fact I
think it was the "runbb.sh stop" process. That process doesn't need
to be killed? So the script shuts everything down, then tries to kill
itself? and produces an error. It then doesn't clean up
$BBHOME/tmp/BBPID, and even creates a file called runbb.sh.8525 with
this for contents:
cat runbb.sh.8525
8524 pts/2 S 0:00 su bb -c /usr/local/bb/bb/runbb.sh stop
8525 pts/2 S 0:00 /bin/sh /usr/local/bb/bb/runbb.sh stop
8524 pts/2 S 0:00 su bb -c /usr/local/bb/bb/runbb.sh stop
8525 pts/2 S 0:00 /bin/sh /usr/local/bb/bb/runbb.sh stop
8524 pts/2 S 0:00 su bb -c /usr/local/bb/bb/runbb.sh stop
8525 pts/2 S 0:00 /bin/sh /usr/local/bb/bb/runbb.sh stop
I guess I could just let root run/stop BB, but I don't like that.
Shane
On Wed, 22 Dec 2004 15:42:06 +0100, Johann Eggers
<johann.eggers@teleatlas.com> wrote:
> Hi,
>
> think you have to use the following command: su bb -c
> "/usr/local/bb/bb/runbb.sh stop"
> Otherwise you will have a login shell...
>
> Johann
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index