BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{bb} RE: {bb} RE: {bb} runbb.sh stop  - fails with"kill: no such process"



Do you have anything like this in runbb.sh:

$PS | $GREP $BBHOME | $GREP -v grep > $some_temporary_file ? 

and later something like this:

$CAT $some_temporary_file | while ... set $line ... $KILL $2 ?

If you have, then the list of BB-processes is generated on the fly.
Some processes might die before you have time to kill them (esp. sleeps)...


Add this to the $CAT -line:
	| grep -v "sleep [0-9]" |
and at least the sleeps cause no trouble anymore.


You could also use
	kill -9 $2 >/dev/null 2>&1 
and live happily ever after.


-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Manfred Puerro
Sent: Thursday, January 05, 2006 5:43 PM
To: bb@bb4.com
Subject: Re: {bb} RE: {bb} runbb.sh stopÂÂ  - fails with"kill: no such process"

Hello

Me once again, with some more information about the problem...

i checked the tmp/BBPID file, it seems correct to me, th two processes are really running.

but stop fails anyway.

after that i have to perform bbrun.sh stop three!!! times to have a successfull stop.

thx a lot

manfred pürro


----------- Little snippet from my shell tryouts -----------------

bb@calvin:~/ds-bb/tmp:\>  less BBPID
17041
16930
bb@calvin:~/ds-bb/tmp:\>  ps -ef | grep ds-bb
      bb 17486 17316  0 16:35:32 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-ping.sh 193.72.194.123 FALSE
      bb 16930     1  0 16:34:42 pts/3    0:00 /app/bb/ds-bb/bin/bbrun
/app/bb/ds-bb/bin/bb-network.sh
      bb 17316 17309  0 16:35:27 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-network.sh
      bb 17121 17114  0 16:35:12 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-network.sh
      bb 17114 17113  0 16:35:12 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-network.sh
      bb 17053     1  0 16:34:57 pts/3    0:00 /app/bb/ds-bb/bin/bbrun
/app/bb/ds-bb/bin/bb-network.sh
      bb 17297 17121  0 16:35:16 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-ping.sh 193.72.194.123 FALSE
      bb 17309 17308  0 16:35:27 pts/3    0:00 /bin/sh
/app/bb/ds-bb/bin/bb-network.sh
      bb 17041     1  0 16:34:52 ?        0:00 /app/bb/ds-bb/bin/bbd
      bb 17113 16930  0 16:35:12 pts/3    0:00 sh -c
/app/bb/ds-bb/bin/bb-network.sh 2>&1
      bb 17308 17053  0 16:35:27 pts/3    0:00 sh -c
/app/bb/ds-bb/bin/bb-network.sh 2>&1
bb@calvin:~/ds-bb:\>  ./runbb.sh stop
Stopping Big Brother...
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
bb@calvin:~/ds-bb:\>  ./runbb.sh start
Big Brother is already running, aborting start procedure bb@calvin:~/ds-bb:\>  ./runbb.sh stop Stopping Big Brother...
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
bb@calvin:~/ds-bb:\>  ./runbb.sh stop
Stopping Big Brother...
bb@calvin:~/ds-bb:\>  ./runbb.sh start
Big Brother is already running, aborting start procedure bb@calvin:~/ds-bb:\>  ./runbb.sh stop Stopping Big Brother...
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
./runbb.sh: kill: no such process
bb@calvin:~/ds-bb:\>  ./runbb.sh stop
Stopping Big Brother...
bb@calvin:~/ds-bb:\>  ./runbb.sh stop
Stopping Big Brother...
bb@calvin:~/ds-bb:\>  ./runbb.sh stop
Stopping Big Brother...
bb@calvin:~/ds-bb:\>  ./runbb.sh start
Starting Big Brother
 
-> BBOUT.OLD file has over 2000 lines
-> Consider removing it to save space...
 
        Starting Big Brother Daemon (bbd)...
        Starting Network tests (bb-network)...
        Starting Display process (bb-display)...
Big Brother 1.9e started
bb@calvin:~/ds-bb:\>



On Don, 2006-01-05 at 16:18, Strandell, Ralf wrote:
> Hi,
> 
> I've had similar problems (for five years?).
> I tend to ignore those and nothing bad happens. 
> 
> Use "ps -fu bb" to check what processes bb has running.
> If, after a few seconds, you only see "a million" sleeps, then the 
> shutdown was successful.
> 
> $BBHOME/tmp/BBPID is a list of process ids related to BB.
> If that list gets outdated for some reason, then you'll See these 
> errors at shutdown.
> 
> Have you ever restarted any og the bb processes manually?
> 
> 
> -----Original Message-----
> From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Manfred 
> Puerro
> Sent: Thursday, January 05, 2006 3:47 PM
> To: bb@bb4.com
> Subject: {bb} runbb.sh stop  - fails with "kill: no such process"
> 
> Hello
> 
> I have some problems with the BB stop script. Everytime i want to stop BB it fails, if i then relaunch "runbb.sh stop" once ore twice again, the stopping is successfull.
> 
> At the moment i am installing the init.d scripts and for this reason it should be possible to shut down the BB properly.
> 
> Has anyone an idea why this happens?
> 
> 
> Thanks a lot for any help
> 
> Sincerly
> 
> Manfred Pürro
> 
> 
> 
> bb@calvin:~/ds-bb:\>  ./runbb.sh stop
> Stopping Big Brother...
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> bb@calvin:~/ds-bb:\>  ./runbb.sh start Big Brother is already running, 
> aborting start procedure bb@calvin:~/ds-bb:\>  ./runbb.sh stop Stopping Big Brother...
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> ./runbb.sh: kill: no such process
> bb@calvin:~/ds-bb:\>  ./runbb.sh stop
> Stopping Big Brother...
> bb@calvin:~/ds-bb:\>  ./runbb.sh stop
> Stopping Big Brother...
> bb@calvin:~/ds-bb:\>  ./runbb.sh start Starting Big Brother
>  
> -> BBOUT.OLD file has over 2000 lines
> -> Consider removing it to save space...
>  
>         Starting Big Brother Daemon (bbd)...
>         Starting Network tests (bb-network)...
>         Starting Display process (bb-display)...
> Big Brother 1.9e started
> bb@calvin:~/ds-bb:\>
> 
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> 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.
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> 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.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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