From owner-freebsd-bugs Sun Oct 6 9:20:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22AEA37B401 for ; Sun, 6 Oct 2002 09:20:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 697FC43E97 for ; Sun, 6 Oct 2002 09:20:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g96GKBCo085962 for ; Sun, 6 Oct 2002 09:20:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g96GKB2T085961; Sun, 6 Oct 2002 09:20:11 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F3AA37B401 for ; Sun, 6 Oct 2002 09:13:40 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BA8543E4A for ; Sun, 6 Oct 2002 09:13:40 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g96GDc7R012230 for ; Sun, 6 Oct 2002 09:13:38 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g96GDcmk012229; Sun, 6 Oct 2002 09:13:38 -0700 (PDT) Message-Id: <200210061613.g96GDcmk012229@www.freebsd.org> Date: Sun, 6 Oct 2002 09:13:38 -0700 (PDT) From: Barnaba Marcello To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/43745: Cannot use pppctl(8) on a ppp socket opened before an unclean reboot Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43745 >Category: misc >Synopsis: Cannot use pppctl(8) on a ppp socket opened before an unclean reboot >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 06 09:20:09 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Barnaba Marcello >Release: 4.6-STABLE >Organization: Azzurra.org >Environment: FreeBSD punkhouse.vejnet.org 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Mon Sep 16 18:42:34 CEST 2002 root@punkhouse.vejnet.org:/usr/obj/usr/src/sys/PARADOX i386 >Description: When the system is rebooted uncleanly (e.g., power failure), and you configured ppp(8) with set server=/path/to/ppp_socket, this socket won`t be unlinked by ppp. So, when you power on the machine, the socket is already in place, ppp can`t bind it (Address already in use) and you cannot use pppctl, unless you manually remove the socket and restart ppp. >How-To-Repeat: * Add this line in your ppp.conf: set server=/etc/ppp/pppctl * Start ppp. * Unplug the power cable of the machine. * When you restart it and run ppp, it will be unable to bind the socket. >Fix: Add this line to /etc/rc.network:279 rm -f /etc/ppp/pppctl A better solution would be to put PPP_SOCKET=/etc/ppp/pppctl in /etc/rc.conf and rm -f $PPP_SOCKET in /etc/rc.network:279 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message