Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 11:04:41 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Dmitry Morozovsky <marck@rinet.ru>, freebsd-bugs@FreeBSD.ORG, brian@freebsd-services.com
Subject:   Re: bin/29966: cleanup of ppp server socket on unclean startup
Message-ID:  <20010823110440.A81976@blossom.cjclark.org>
In-Reply-To: <200108231516.f7NFGZg72110@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Thu, Aug 23, 2001 at 04:16:35PM %2B0100
References:  <marck@rinet.ru> <200108231516.f7NFGZg72110@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 23, 2001 at 04:16:35PM +0100, Brian Somers wrote:
> > CJC> Does your purgedir() not look like this?
> > 
> > oops. seems I miss something during mergemaster. Yes, now it should remove
> > anything which is not directory. So, my trouble gone away. The only thing
> > I suppose is useful according to this issue now is change ppp.conf both in
> > /etc/ppp and in examples to move example server sockets to /var/run.
> 
> FWIW, purgedir() was broken in 4.3-RELEASE.  My MFC request fixing 
> this during the 4.3 code-slush was refused.  4.3 went out with a 
> broken cleaning of /var/run/ :(
> 
> I don't think the examples should be changed to say /var/run as 
> /var/run is only writable by root and ppp's diagnostic socket is 
> created with the privileges of the user that ran ppp.

I handled that with,

  # mkdir /var/run/ppp
  # chmod 664 /var/run/ppp
  # chgrp network /var/run/ppp

A 'network' writeable directory in /var/run.

> If bind() maybe returned EADDRNOTAVAIL instead of EADDRINUSE for 
> stale socket files, maybe ppp could do something about this...

That again reminds that the complete fix would be to get ppp(8) to
handle the problem since this is not only a boot time issue.
-- 
Crist J. Clark                           cjclark@alum.mit.edu

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?20010823110440.A81976>