When I ran "adsl start" twice (adsl is the script I wrote to raise the
ADSL connection) and then adsl stop, and then I try to start the
connection, again, I get the following error messages:

<<<
Starting ADSL services: (unknown)[12526]: log[main:pptp.c:74]: trying to connect to 
'10.0.0.138'
warn[open_unixsock:pptp_callmgr.c:309]: Call manager for 10.0.0.138 is already running.
fatal[callmgr_main:pptp_callmgr.c:124]: Could not open unix socket for 10.0.0.138
fatal[launch_callmgr:pptp.c:216]: Call manager exited with error 256
>>>

Now, I want to still be able to restart the connection after such a mishap
but I don't know how.

Regards,

        Shlomi Fish

My adsl script is:
<<<
#!/bin/bash
#
# chkconfig: 2345 85 15
# description: GPM adds mouse support to text-based Linux applications such \
#              the Midnight Commander. Is also allows mouse-based console \
#              cut-and-paste operations, and includes support for pop-up \
#              menus on the console.
# processname: gpm
# pidfile: /var/run/gpm.pid
# config: /etc/sysconfig/mouse

# source function library
 /etc/rc.d/init.d/functions

RETVAL=0

case "$1" in
  start)
        echo -n "Starting ADSL services: "
        #modprobe dmfe
        pptp 10.0.0.138 debug user ffish@IKzahav remotename \
                "10.0.0.138 RELAY_PPP1" defaultroute netmask 255.0.0.0 \
                mtu 1452 mru 1452 noauth
        echo
        ;;
  stop)
        echo -n "Shutting down ADSL services: "
        ifconfig ppp0 down
        killall pptp
        pkill ppp
        #modprobe -r dmfe
        #/sbin/rmmod ppp
        echo
        ;;
  restart|reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  status)
        L=`ps | grep pptp | grep -v grep | wc -l`
        L=`expr $L \> 0`
        if [ "$L" == 1 ] ; then
                echo "ADSL Loaded"
                RETVAL=0
        else
                echo "ADSL Not Loaded"
                RETVAL=1
        fi
        ;;
  *)
        echo "Usage: adsl {start|stop|status|restart|reload}"
        exit 1
esac

exit $RETVAL
>>>



----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED]
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       [EMAIL PROTECTED]

"Let's suppose you have a table with 2^n cups..."
"Wait a second - is n a natural number?"


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to