Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2010 09:42:30 +0200
From:      Bernhard Schmidt <bschmidt@techwires.net>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: wpa_supplicant does not create pidfile
Message-ID:  <AANLkTiks0yeU6mZ-QY0J4tHgGnF94X9kXAWk43%2Ba1yw-@mail.gmail.com>
In-Reply-To: <4C776AEE.7070309@bsdforen.de>
References:  <4C716382.3040605@bsdforen.de> <AANLkTik22JeV0ScuT3DMfeDH=b5CT-65dxErBGwkHLOj@mail.gmail.com> <4C776AEE.7070309@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 27, 2010 at 09:36, Dominic Fandrey <kamikaze@bsdforen.de> wrote=
:
> On 27/08/2010 09:28, Bernhard Schmidt wrote:
>> On Sun, Aug 22, 2010 at 19:50, Dominic Fandrey <kamikaze@bsdforen.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiks0yeU6mZ-QY0J4tHgGnF94X9kXAWk43%2Ba1yw->