#!/bin/sh # # Big Brother Professional Edition Startup # Copyright (c) Quest Software 2003 # #chkconfig: 35 98 87 #description: Big Brother PE Server PATH=$PATH:/bin:/usr/bin # FOR su BBHOME=/var/bbc BBUSER=bbc case "$1" in start) su - $BBUSER -c "cd $BBHOME;$BBHOME/runbb.sh start" echo "Starting Big Brother Professional Edition." #&SLEEP ;; restart) su - $BBUSER -c "cd $BBHOME;$BBHOME/runbb.sh restart" echo "Restarting Big Brother Professional Edition." #&SLEEP ;; stop) su - $BBUSER -c "cd $BBHOME;$BBHOME/runbb.sh stop" echo "Stopping Big Brother Professional Edition." ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac exit 0