From owner-freebsd-questions@FreeBSD.ORG Fri Mar 11 17:57:15 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B7C616A4CE for ; Fri, 11 Mar 2005 17:57:15 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id D948643D41 for ; Fri, 11 Mar 2005 17:57:14 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com[208.206.151.59]) by comcast.net (sccrmhc12) with ESMTP id <20050311175714012000ttlje>; Fri, 11 Mar 2005 17:57:14 +0000 Message-ID: <4231DC26.60305@computer.org> Date: Fri, 11 Mar 2005 11:57:58 -0600 From: Eric Schuele User-Agent: Mozilla Thunderbird 1.0 (X11/20050127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions References: <4231DB36.20000@computer.org> In-Reply-To: <4231DB36.20000@computer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Problems stopping pptp... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 17:57:15 -0000 FWIW I'm running 5.4-PRERELEASE i386 as of last sunday. But the problem has follwed me from 5.2.1. No doubt its not the OS...I'm sure its me. Just not sure what I'm doing wrong. Thanks, -Eric Eric Schuele wrote: > Hello, > > I have some keybindings on my laptop that allow me to easily start and > stop a pptp connection to my office. > > It looks something like: > Control Shift V opens the vpn using > sudo pptp x.x.x.x OFFICE > Alt Shift V closes the connection > sudo killall -TERM ppp > > When I do this (stopping pptp) I get a pptp.core in my home dir. In > fact no matter what I try... I allways end up with a core. > > I have tried: > # as myself > sudo killall -TERM ppp > sudo kill -TERM `cat /var/run/tun0.pid` > sudo killall -TERM pptp > Also tried those as root (without sudo). > I have tried all of the above after issuing the pptp command from CLI as > root. Still no luck > > I have also tried other signals (QUIT, ABRT). > > So... the question is.. How am I supposed to shut down a pptp > connection? I would like to be able to do it with sudo, or at least > some way to bind it to keys of non-root users. > > Thanks, > -- Regards, Eric