From owner-freebsd-questions Thu Mar 14 15:38:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 94C0237B402 for ; Thu, 14 Mar 2002 15:38:49 -0800 (PST) Received: from hades.hell.gr (patr530-a236.otenet.gr [212.205.215.236]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2ENck0j026373; Fri, 15 Mar 2002 01:38:47 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2ENcVoH004560; Fri, 15 Mar 2002 01:39:04 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2EJHcDv003401; Thu, 14 Mar 2002 21:17:38 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 14 Mar 2002 21:17:38 +0200 From: Giorgos Keramidas To: Bara Zani Cc: freebsd-questions@freebsd.org Subject: Re: Script to hangup ppp? Message-ID: <20020314191738.GB3159@hades.hell.gr> References: <20020314003211.11956.qmail@web9306.mail.yahoo.com> <086201c1cb57$5515cd50$fd6e34c6@moti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <086201c1cb57$5515cd50$fd6e34c6@moti> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-03-14 07:54, Bara Zani wrote: > Radhika Sambamurti wrote: > > > > kill -HUP `cat /var/run/tun0.pid` > > > > this should do it for you. > > Why not just use killall ppp ? This will generally work like a charm. That's what I usually do at home, where I have only one PPP link, to my dialup ISP. The only case where the files /var/run/tun?.pid will prove a better thing is IMHO when one runs more than one instances of /usr/bin/ppp. In that case `killall ppp' will bring down all the PPP links, which might not be a good idea :-) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message