Article View: demon.tech.unix
Article #42Re: have to re-boot to connect net !!??
From: Geoff Cox
Date: Mon, 07 Aug 2000 00:00
Date: Mon, 07 Aug 2000 00:00
57 lines
2213 bytes
2213 bytes
To attempt to end the Net coinnection I am using a script from the net #!/bin/bash DEVICE=ppp0 if [ -r /var/run/$DEVICE.pid ]; then kill -INT `cat /var/run/$DEVICE.pid` if [ ! "$?" = "0" ]; then rm -f /var/run/$DEVICE.pid echo "ERROR: Removed stale pid file"; exit 1 fi echo "PPP link to $DEVICE terminated."; exit 0 fi echo "ERROR: PPP link not active on $DEVICE"; exit 1 This does say that PPP link to ppp0 terminated ...but the lineis not dropped! Why?? Geoff On Mon, 07 Aug 2000 17:37:54 GMT, matt@NOSPAMcipherdesign.com (matt venn) wrote: >id say you dont want to be killing the tty. probably this is being >killed, but ppp isnt. so then you connect again and the next available >device is ppp1. > >what are you using to connect with? wvdial/minicom/chat etc. >you probably want to kill that. > >also a kill -9 is the harshest kill type. nothing can stop this from >killing the process. always try 1 and 2 first, to allow the process to >finish what its doing (for example removing ppp0 after quitting) > >hope that helps >matt
Technical Details
Message-ID:
<tovtos8qi07qb42bldso1a13aucaco8qc0@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<akotos0ikqc71g7l5g62n89pb17f4mgndn@4ax.com> <398ef34a.28988793@news.ntlworld.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111240,5d7080cd9c55ba1d X-Google-Attributes: gid111240,public X-Google-Thread: 10f12e,5d7080cd9c55ba1d X-Google-Attributes: gid10f12e,public X-Google-Thread: 108f6a,5d7080cd9c55ba1d X-Google-Attributes: gid108f6a,public X-Google-Thread: fac57,5d7080cd9c55ba1d X-Google-Attributes: gidfac57,public From: Geoff Cox <geoff.cox@cableinet.co.uk> Subject: Re: have to re-boot to connect net !!?? Date: 2000/08/07 Message-ID: <tovtos8qi07qb42bldso1a13aucaco8qc0@4ax.com> X-Deja-AN: 655517187 Content-Transfer-Encoding: 7bit References: <akotos0ikqc71g7l5g62n89pb17f4mgndn@4ax.com> <398ef34a.28988793@news.ntlworld.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news1.cableinet.net 965672963 213.48.39.113 (Mon, 07 Aug 2000 19:29:23 BST) Organization: Cable Internet (post doesn't reflect views of Cable Internet) MIME-Version: 1.0 NNTP-Posting-Date: Mon, 07 Aug 2000 19:29:23 BST Newsgroups: demon.tech.unix,demon.ip.support.unix,linux.redhat.ppp,linux.redhat.misc