Hi,
I am having a problem with BPALogin basically it connects to BPALogin - when I restart Linux. (I am using SUSE 10 - which is a LSB type Linux).
Anyway the problems seems to happen if I want stop the BPALogin with Yast2 - it shuts down - however it seems to hang when I restart it. I am figuring it
is something wrong the with BPALogin init script.
Any ideas - am I not setting the correct return code
somewhere. Or is there something else I need todo.
When it hangs after trying to start it via Yast2 it
never yast2 never detects it as started so I never
get control back from Yast2.
My script is below - thanks in advance,
Ward.
ward@threetoed.com
#!/bin/sh
### BEGIN INIT INFO
# Provides: bpalogin
# Required-Start: $syslog $remote_fs $dhcpd
# Should-Start:
# Required-Stop: $syslog $remote_fs
# Should-Stop: $time ypbind sendmail
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: BPALogin Telstra Client
# Description: Provide login support for Telstra Bpalogin.
# See the config file in /etc/bpalogin.conf for more info.
### END INIT INFO
#
# bpalogin This shell script takes care of starting and stopping
# bpalogin.
#
# chkconfig: 345 50 50
# description: A daemon to connect to Big Pond Advance Cable
#
# processname: bpalogin
# config: /etc/bpalogin.conf
# Source function library.
#. /etc/rc.d/init.d/functions
# Source networking configuration.
#. /etc/sysconfig/network
# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
#[ -f /usr/sbin/bpalogin ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting bpalogin: "
/usr/sbin/bpalogin -c /etc/bpalogin.conf
echo
touch /var/lock/subsys/bpalogin
exit 0
;;
stop)
# Stop daemons.
echo -n "Shutting down bpalogin: "
killproc bpalogin
echo
rm -f /var/lock/subsys/bpalogin
exit 0
;;
restart)
$0 stop
$0 start
exit 0
;;
status)
status bpalogin
exit 0
;;
*)
echo "Usage: bpalogin {start|stop|restart|status}"
exit 1
esac
exit 0