Mine script is different .... but, remember that BB must not started as
user: root... and .. if you add the following lines to your
(/etc/rc.d/init.d/runbb) script:
# chkconfig: 35 95 05
# description: Big Brother client sowftware.
then you can then do: "chkconfig --add runbb" to have it
automatically added as a startup at boot time, in run levels 3 & 5.
Here is my /etc/rc.d/init.d/runbb script:
[bbuser@bigbrother-dev-01 init.d]$ cat runbb
#!/bin/sh
# chkconfig: 35 95 05
# description: Big Brother client sowftware.
export BBSLEEP=120
case "$1" in
'start')
if test -x '/usr/local/bb/bb/runbb.sh'; then
exec su - bbuser -c '/usr/local/bb/bb/runbb.sh start'
fi
;;
'stop')
if test -x /usr/local/bb/bb/runbb.sh; then
exec su - bbuser -c '/usr/local/bb/bb/runbb.sh stop'
fi
;;
'restart')
if test -x /usr/local/bb/bb/runbb.sh; then
exec su - bbuser -c '/usr/local/bb/bb/runbb.sh restart'
fi
;;
*)
echo "usage: /etc/init.d/runbb.sh {start|stop|restart}"
;;
esac
I hope this helps,
steve
Network Intern wrote:
Hi all,
I have installed
Bigbrother1.9i on Red Hat EL4.
I am not able to get the startup
script for big brother working. I have pasted the script below which
I am using. When I run it manually it works perfect but doesnt start
BB at bootup. I have saved this script 'bb' under /etc/rc.d/init.d/bb
and have created a link in rc3.d directory as K11bb and
S89bb.
#!/bin/sh
#
if [ -x /sbin/runuser ]; then
RUNUSER=runuser
else
RUNUSER=su
fi
case
"$1" in
'start')
$RUNUSER - abhi -c "/usr/local/bb/runbb.sh $1"
;;
'stop')
$RUNUSER - abhi -c "/usr/local/bb/runbb.sh $1"
;;
*)
echo
"Usage: $0 { start | stop }"
exit 1
esac
exit 0
I am not able to figure out this
problem. If someone can help me with this, it will be gr8! My only
doubt is that the links might be the problem?
Thank You,
AJ
nsintern@hamilton.edu
Network Services
Hamilton College
ext-5638
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
|