From nobody@FreeBSD.org  Sun Oct  6 09:13:40 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7F3AA37B401
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <l.barnaba@azzurra.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cannot use pppctl(8) on a ppp socket opened before an unclean reboot
X-Send-Pr-Version: www-1.0

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 06 09:20:09 PDT 2002
>Closed-Date:    Tue Nov 26 13:47:54 PST 2002
>Last-Modified:  Tue Nov 26 13:47:54 PST 2002
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: tom 
State-Changed-When: Wed Nov 20 07:21:53 PST 2002 
State-Changed-Why:  
conf/45226 is a duplicate report of this bug but also contains a patch. 
Are you happy for me to close your PR as the newer report contains more 
information? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43745 
State-Changed-From-To: feedback->closed 
State-Changed-By: tom 
State-Changed-When: Tue Nov 26 13:47:21 PST 2002 
State-Changed-Why:  
conf/45226 contains a more detailed analysis of this problem. 

Thanks for reporting this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43745 
>Unformatted:
