From owner-freebsd-stable@FreeBSD.ORG Fri Aug 27 07:42:31 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 3F020106566B for ; Fri, 27 Aug 2010 07:42:31 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id F125E8FC14 for ; Fri, 27 Aug 2010 07:42:30 +0000 (UTC) Received: by qwg5 with SMTP id 5so2742483qwg.13 for ; Fri, 27 Aug 2010 00:42:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.233.68 with SMTP id jx4mr258676qcb.7.1282894950111; Fri, 27 Aug 2010 00:42:30 -0700 (PDT) Received: by 10.229.7.131 with HTTP; Fri, 27 Aug 2010 00:42:30 -0700 (PDT) X-Originating-IP: [91.14.62.192] In-Reply-To: <4C776AEE.7070309@bsdforen.de> References: <4C716382.3040605@bsdforen.de> <4C776AEE.7070309@bsdforen.de> Date: Fri, 27 Aug 2010 09:42:30 +0200 Message-ID: From: Bernhard Schmidt To: Dominic Fandrey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Fri, 27 Aug 2010 07:42:31 -0000 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 wr= ote: >>> 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 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- etc/mtree/BSD.var.dist>.....(revision 211568) >> +++ etc/mtree/BSD.var.dist>.....(working copy) >> @@ -64,6 +64,8 @@ >> =A0 =A0 =A0 =A0 =A0.. >> =A0 =A0 =A0 =A0 =A0ppp =A0 =A0 =A0 =A0 =A0 =A0 gname=3Dnetwork mode=3D07= 70 >> =A0 =A0 =A0 =A0 =A0.. >> + =A0 =A0 =A0 =A0wpa_supplicant >> + =A0 =A0 =A0 =A0.. >> =A0 =A0 =A0.. >> =A0 =A0 =A0rwho =A0 =A0 =A0 =A0 =A0 =A0gname=3Ddaemon mode=3D0775 >> =A0 =A0 =A0.. > > 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. --=20 Bernhard