Date: Sun, 6 Oct 2002 09:13:38 -0700 (PDT) From: Barnaba Marcello <l.barnaba@azzurra.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/43745: Cannot use pppctl(8) on a ppp socket opened before an unclean reboot Message-ID: <200210061613.g96GDcmk012229@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210061613.g96GDcmk012229>