3 # bb Big Brother System and Network Monitor
6 # description: Big Brother is System and Network Monitoring system
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/bb ] && . /etc/sysconfig/bb
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network ]; then
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/bb ]; then
34 su - bb -c '/usr/bin/setsid /usr/lib/bb/runbb.sh start' </dev/null >/dev/null 2>&1
36 [ $RETVAL -eq 0 ] && ok || fail
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bb
39 msg_already_running bb
44 if [ -f /var/lock/subsys/bb ]; then
46 su - bb -c '/usr/lib/bb/runbb.sh stop' >/dev/null 2>&1
47 [ $? -eq 0 ] && ok || died
48 rm -f /var/lock/subsys/bb >/dev/null 2>&1
61 msg_usage "$0 {start|stop|restart|force-reload|status}"