From owner-freebsd-stable@FreeBSD.ORG Tue Sep 7 07:26:47 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9FC810656BF for ; Tue, 7 Sep 2010 07:26:47 +0000 (UTC) (envelope-from marka@isc.org) Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by mx1.freebsd.org (Postfix) with ESMTP id 8AF0B8FC1E for ; Tue, 7 Sep 2010 07:26:47 +0000 (UTC) Received: from farside.isc.org (farside.isc.org [IPv6:2001:4f8:3:bb::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "farside.isc.org", Issuer "ISC CA" (verified OK)) by mx.pao1.isc.org (Postfix) with ESMTPS id 2487DC9421; Tue, 7 Sep 2010 07:26:36 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (drugs.dv.isc.org [IPv6:2001:470:1f00:820:ea06:88ff:fef3:4f9c]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by farside.isc.org (Postfix) with ESMTP id 76347E6030; Tue, 7 Sep 2010 07:26:35 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (Postfix) with ESMTP id ABE9842FB62; Tue, 7 Sep 2010 17:26:32 +1000 (EST) To: Dominic Fandrey From: Mark Andrews References: <4C716382.3040605@bsdforen.de> <201009070850.06584.bschmidt@techwires.net> <4C85E33E.4060504@bsdforen.de> <201009070909.26304.bschmidt@techwires.net><4C85E638.4070403@bsdforen.de> In-reply-to: Your message of "Tue, 07 Sep 2010 09:14:00 +0200." <4C85E638.4070403@bsdforen.de> Date: Tue, 07 Sep 2010 17:26:32 +1000 Message-Id: <20100907072632.ABE9842FB62@drugs.dv.isc.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mx.pao1.isc.org Cc: Bernhard Schmidt , freebsd-stable@freebsd.org Subject: Re: wpa_supplicant does not create pidfile X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 07:26:47 -0000 In message <4C85E638.4070403@bsdforen.de>, Dominic Fandrey writes: > On 07/09/2010 09:09, Bernhard Schmidt wrote: > > On Tuesday, September 07, 2010 09:01:18 Dominic Fandrey wrote: > >> On 07/09/2010 08:50, Bernhard Schmidt wrote: > >>> On Friday, August 27, 2010 09:42:30 Bernhard Schmidt wrote: > >>>> On Fri, Aug 27, 2010 at 09:36, Dominic Fandrey > > wrote: > >>>>> On 27/08/2010 09:28, Bernhard Schmidt wrote: > >>>>>> On Sun, Aug 22, 2010 at 19:50, Dominic Fandrey > >>> > >>> wrote: > >>>>>>> wpa_supplicant doesn't create the pidfile if the target directory > >>>>>>> does not exist. Because /var/run is wiped with every boot I added > >>>>>>> the following line to my rc.local to workaround this issue: > >>>>>>> > >>>>>>> /bin/mkdir -p /var/run/wpa_supplicant > >>>>>>> > >>>>>>> I'm running RELENG_8. > >>>>>> > >>>>>> How about this? > >>>>>> > >>>>>> Index: etc/mtree/BSD.var.dist > >>>>>> =================================================================== > >>>>>> --- etc/mtree/BSD.var.dist>.....(revision 211568) > >>>>>> +++ etc/mtree/BSD.var.dist>.....(working copy) > >>>>>> @@ -64,6 +64,8 @@ > >>>>>> > >>>>>> .. > >>>>>> ppp gname=network mode=0770 > >>>>>> .. > >>>>>> > >>>>>> + wpa_supplicant > >>>>>> + .. > >>>>>> > >>>>>> .. > >>>>>> rwho gname=daemon mode=0775 > >>>>>> .. > >>>>> > >>>>> Is the mtree built every time the system boots? Because my /var/run > >>>>> is a tmpfs. And even if it wasn't, I think it's wiped every boot > >>>>> any way. > >>>> > >>>> Not build but, according to /etc/rc.d/var mtree is run on every boot. > >>>> I actually tried that and it works just fine. > >>> > >>> Did you have a chance to try this? Given positive feedback I'd like to > >>> commit it. > >> > >> No, doesn't work. The named and ppp directories also don't exist. > >> > >> Sorry about the delay. > > > > Ok, thanks. > > > > Is it only /var/run/* that is wiped for you, or /var/* itself? I just check > ed > > rc.d/var and it looks like this: > > if [ -d /var/run -a -d /var/db -a -d /var/empty ] ; then > > true > > elif [ -x /usr/sbin/mtree ] ; then > > populate_var > > > > So.. if var/run does exist, populate_var isn't run. > > > > Only /var/run and /var/log are tmpfs (notebook, reduce HD access > to allow HD spindown). I wouldn't wipe my /var/db every boot. Then /var/run must exist as it is a mount point. > Regards > > -- > A: Because it fouls the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org