Date: Fri, 12 Oct 2001 22:00:02 -0700 (PDT) From: "Crist J. Clark" <cristjc@earthlink.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/29966: cleanup of ppp server socket on unclean startup Message-ID: <200110130500.f9D502335662@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/29966; it has been noted by GNATS. From: "Crist J. Clark" <cristjc@earthlink.net> To: Dmitry Morozovsky <marck@rinet.ru> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/29966: cleanup of ppp server socket on unclean startup Date: Fri, 12 Oct 2001 21:55:29 -0700 On Thu, Aug 23, 2001 at 02:16:12PM +0400, Dmitry Morozovsky wrote: [snip] > 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. Finally got to this. I'll commit these soon. Any place else anyone can see 'set server' in the ppp(8) examples or documentation? Index: src/etc/mtree/BSD.var.dist =================================================================== RCS file: /export/ncvs/src/etc/mtree/BSD.var.dist,v retrieving revision 1.50 diff -u -r1.50 BSD.var.dist --- src/etc/mtree/BSD.var.dist 2001/10/01 08:54:16 1.50 +++ src/etc/mtree/BSD.var.dist 2001/10/13 04:53:25 @@ -57,6 +57,7 @@ run named uname=bind gname=bind .. + ppp gname=network mode=0775 .. rwho gname=daemon mode=0775 .. Index: src/share/examples/ppp/ppp.conf.isdn =================================================================== RCS file: /export/ncvs/src/share/examples/ppp/ppp.conf.isdn,v retrieving revision 1.8 diff -u -r1.8 ppp.conf.isdn --- src/share/examples/ppp/ppp.conf.isdn 2001/05/25 12:11:02 1.8 +++ src/share/examples/ppp/ppp.conf.isdn 2001/10/13 04:39:07 @@ -75,7 +75,7 @@ link * set mode auto # Automatically manage the second link set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample - set server /tmp/ppp-isdn "" 0177 # The diagnostic port (-rw-------) + set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------) # # When phone calls become free (say 0:00 Saturday morning), we may want Index: src/share/examples/ppp/ppp.conf.sample =================================================================== RCS file: /export/ncvs/src/share/examples/ppp/ppp.conf.sample,v retrieving revision 1.27 diff -u -r1.27 ppp.conf.sample --- src/share/examples/ppp/ppp.conf.sample 2001/07/24 13:11:57 1.27 +++ src/share/examples/ppp/ppp.conf.sample 2001/10/13 04:40:35 @@ -156,7 +156,7 @@ set mru 1504 # Some extra room for the MP header - set server /tmp/ppp-TA "" 0177 # The diagnostic port (-rw-------) + set server /var/run/ppp/ppp-TA "" 0177 # The diagnostic port (-rw-------) # Example segments @@ -182,7 +182,7 @@ # First, you must set up your control socket. It's safest to use # a UNIX domain socket, and watch the permissions: # - set server /var/tmp/internet MySecretPassword 0177 + set server /var/run/ppp/internet MySecretPassword 0177 # # Although a TCP port may be used if you want to allow control # connections from other machines: @@ -566,7 +566,7 @@ set dial set login set ifaddr 127.0.0.2 127.0.0.3 - set server /var/tmp/loop "" 0177 + set server /var/run/ppp/loop "" 0177 loop-in: set timeout 0 Index: src/share/examples/ppp/ppp.conf.span-isp.working =================================================================== RCS file: /export/ncvs/src/share/examples/ppp/ppp.conf.span-isp.working,v retrieving revision 1.3 diff -u -r1.3 ppp.conf.span-isp.working --- src/share/examples/ppp/ppp.conf.span-isp.working 2000/08/17 14:40:42 1.3 +++ src/share/examples/ppp/ppp.conf.span-isp.working 2001/10/13 04:42:45 @@ -94,7 +94,7 @@ enable chap disable lqr set ifaddr 127.0.0.2 127.0.0.3 - set server /var/tmp/vpn-in "" 0177 + set server /var/run/ppp/vpn-in "" 0177 isp-in-7: Index: src/share/examples/ppp/ppp.linkup.span-isp =================================================================== RCS file: /export/ncvs/src/share/examples/ppp/ppp.linkup.span-isp,v retrieving revision 1.2 diff -u -r1.2 ppp.linkup.span-isp --- src/share/examples/ppp/ppp.linkup.span-isp 1999/08/28 00:19:31 1.2 +++ src/share/examples/ppp/ppp.linkup.span-isp 2001/10/13 04:42:12 @@ -14,4 +14,4 @@ !bg ppp -background vpnN vpn vpn: - set server /var/tmp/vpn "" 0177 + set server /var/run/ppp/vpn "" 0177 Index: src/share/examples/ppp/ppp.linkup.span-isp.working =================================================================== RCS file: /export/ncvs/src/share/examples/ppp/ppp.linkup.span-isp.working,v retrieving revision 1.2 diff -u -r1.2 ppp.linkup.span-isp.working --- src/share/examples/ppp/ppp.linkup.span-isp.working 1999/08/28 00:19:31 1.2 +++ src/share/examples/ppp/ppp.linkup.span-isp.working 2001/10/13 04:42:33 @@ -14,4 +14,4 @@ !bg ppp -background vpn3 vpn vpn: - set server /var/tmp/vpn "" 0177 + set server /var/run/ppp/vpn "" 0177 -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org 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?200110130500.f9D502335662>