From owner-freebsd-stable@FreeBSD.ORG Tue Sep 7 06:50:11 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 98E7810656E1 for ; Tue, 7 Sep 2010 06:50:11 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2EC038FC26 for ; Tue, 7 Sep 2010 06:50:10 +0000 (UTC) Received: by bwz20 with SMTP id 20so4684278bwz.13 for ; Mon, 06 Sep 2010 23:50:10 -0700 (PDT) Received: by 10.204.50.204 with SMTP id a12mr371124bkg.117.1283842209970; Mon, 06 Sep 2010 23:50:09 -0700 (PDT) Received: from jessie.localnet (p5B0E3EAE.dip0.t-ipconnect.de [91.14.62.174]) by mx.google.com with ESMTPS id x13sm4975255bki.12.2010.09.06.23.50.07 (version=SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 23:50:08 -0700 (PDT) From: Bernhard Schmidt To: Dominic Fandrey Date: Tue, 7 Sep 2010 08:50:06 +0200 User-Agent: KMail/1.13.2 (Linux/2.6.32-24-generic; KDE/4.4.2; i686; ; ) References: <4C716382.3040605@bsdforen.de> <4C776AEE.7070309@bsdforen.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009070850.06584.bschmidt@techwires.net> Cc: 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 06:50:11 -0000 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. -- Bernhard