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



Have you verified that bb "does" own those processes that it cant kill???

Trent

Trent Melcher
Network/System Administrator
Startouch International LTD.
 

> -----Original Message-----
> From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of 
> Shane Presley
> Sent: Wednesday, December 22, 2004 7:13 AM
> To: bb@bb4.com
> Subject: Re: {bb} Scripting BB startup/shutdown in Red Hat
> 
> 
> Hi Johann,
> 
> I tried changing my script to use yours, but I still have the 
> same problem.  Basically it comes down to this.  If as 
> root.... su bb /usr/local/bb/bb/runbb.sh stop
> 
> That works fine.  However, if as root....
> su - bb -c "/usr/local/bb/bb/runbb.sh stop"
> 
> It stops BB, but doesn't clean up $BBHOME/tmp/BBPID, and 
> gives these errors: Stopping Big Brother...
> /usr/local/bb/bb/runbb.sh: line 145: kill: (4931) - Operation 
> not permitted
> /usr/local/bb/bb/runbb.sh: line 145: kill: (4931) - Operation 
> not permitted
> /usr/local/bb/bb/runbb.sh: line 145: kill: (4932) - No such process
> /usr/local/bb/bb/runbb.sh: line 145: kill: (4931) - Operation 
> not permitted
> /usr/local/bb/bb/runbb.sh: line 145: kill: (4932) - No such process
> 
> Shane
> 
> 
> On Tue, 21 Dec 2004 16:58:46 +0100, Johann Eggers 
> <johann.eggers@teleatlas.com> wrote:
> > Hi,
> > 
> > I use the following simple start/stop script:
> > 
> > #!/bin/sh
> > #
> > #       Start script for Big Brother and Tools on LINUX
> > #
> > #       Johann Eggers (jeg), 22.08.2002
> > 
> > BBHOME=/opt/bb
> > 
> > case "$1" in
> > 
> > 'start')
> >         su bb -c "/opt/bb/runbb.sh $1"
> >         ;;
> > 
> > 'stop')
> >         su bb -c "/opt/bb/runbb.sh $1"
> >         ;;
> > 
> > 'restart')
> >         su bb -c "/opt/bb/runbb.sh $1"
> >         ;;
> > *)
> >         echo "Usage: $0 [start|stop|restart]"
> >         ;;
> > esac
> > 
> > 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.
> 


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