BB Unix Network Monitor - Message

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

Re: {bb} starting runbb.sh on unix boxen.



Using Solaris 2.6, on all but the BBDISPLAY host I start BB as
root. On BBDISPLAY I created user bb so mail comes from user bb
instead of root.

On the non-BBDISPLAY hosts the start of runbb.sh is exactly the same
as on BBDISPLAY with the exception of the "su - bb" in the line that
actually starts runbb.sh.

In /etc/rc2.d there is a symlink to /etc/init.d/bb which is:

#!/sbin/sh
#
# /etc/init.d/bb - Start/Stop the Big Brother daemons
#
# S Holmes	Dec 1998
#
PATH=/usr/bin:/bin:/usr/local/etc

case $1 in 
'start')
#
	if [ -x /usr/local/etc/pucc/runbb.sh ]
	then
	su - bb "/usr/local/etc/pucc/runbb.sh"  >/dev/null 2>/dev/null & 
	fi
	;;
'stop')
	pid=`/usr/bin/ps -ef | grep /usr/local/etc/pucc/runbb.sh | \
		grep -v grep | awk '{print $2}'`
	if test "$pid"
	then
		kill -KILL $pid
	fi
	pid=`/usr/bin/ps -ef | grep /opt/bb/bin/bbd | \
		grep -v grep | awk '{print $2}'`
	if test "$pid"
	then
		kill -KILL $pid
	fi
	;;
*)
	echo "usage: /etc/init.d/bb{start|stop}"
	;;
esac

Steve Holmes		 \WWW: http://wwwicd.cc.purdue.edu/~sjh
Unix Systems Administrator\Email:sholmes@purdue.edu
1408 Mathematics Building  \Phone: (765) 496-3325
West Lafayette IN 47907-1395\

>>
 -- using template mhl.format --
Date: Mon, 22 Feb 1999 08:16:40 EST
To:  bb@taex001.tamu.edu

From: Paul Lantinga <PLantinga@DIGITAL-REN.COM>
Subject: {bb} starting runbb.sh on unix boxen.

I'm new to Big Bro and was wondering what ways folks were using to start
runbb.sh at start time on linux and solaris.  Specifically, what user are
you having it run as?  Are people creating a special userid for it to run
as?  What sort of nifty start scripts are folks using?

thanks, Paul.

--
Digital Renaissance
http://www.digital-ren.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
  Please send mail for the mailing list to: bb@taex001.tamu.edu
  To [un]subscribe to this list, send e-mail to majordomo@taex001.tamu.edu
     with [un]subscribe bb in the BODY of the message.
  Please contact the mailing-list-owner as: bb-owner@taex001.tamu.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Please send mail for the mailing list to: bb@taex001.tamu.edu
  To [un]subscribe to this list, send e-mail to majordomo@taex001.tamu.edu
     with [un]subscribe bb in the BODY of the message.
  Please contact the mailing-list-owner as: bb-owner@taex001.tamu.edu


Home | Main Index | Thread Index