[BUG] wpa_cli can't acces ctrl_interface if using wpa_supplicant at .service

Timofey Titovets nefelim4ag
Thu Aug 14 15:50:37 PDT 2014


Sorry, my error. Closed.

2014-08-12 18:32 GMT+03:00 Timofey Titovets <nefelim4ag at gmail.com>:
> Hey, somebody, please fix this in git =-=
> this is assigned bug https://bugs.archlinux.org/task/41510
> wpa_supplicant not work as daemon in systemd system, it start and
> exit, after connecting to wifi.
>
> 2014-08-10 1:11 GMT+03:00 Timofey Titovets <nefelim4ag at gmail.com>:
>> Same try for wpa_supplicant-nl80211 at .service
>>
>> 2014-08-09 21:31 GMT+03:00 Timofey Titovets <nefelim4ag at gmail.com>:
>>> 2014-08-09 21:29 GMT+03:00 Timofey Titovets <nefelim4ag at gmail.com>:
>>>> I create https://wiki.archlinux.org/index.php/Systemd-networkd#Basic_WiFi_DHCP_network
>>>> And after, i try to use wpa_cli or wpa_gui, its not working, because:
>>>> in /usr/lib/systemd/system/wpa_supplicant at .service
>>>> /usr/bin/wpa_supplicant starting without -B arg.
>>>>
>>>> I change service file, and after, all working fine (change Type to
>>>> forking, because -B):
>>>> [Unit]
>>>> Description=WPA supplicant daemon (interface-specific version)
>>>> Requires=sys-subsystem-net-devices-%i.device
>>>> After=sys-subsystem-net-devices-%i.device
>>>>
>>>> # NetworkManager users will probably want the dbus version instead.
>>>>
>>>> [Service]
>>>> Type=forking
>>>> ExecStart=/usr/bin/wpa_supplicant -B
>>>> -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
>>>>
>>>> [Install]
>>>> Alias=multi-user.target.wants/wpa_supplicant@%i.service
>>>>
>>>> --
>>>> Best regards,
>>>> Timofey.
>>>
>>> patch:
>>> ------------
>>> diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
>>> b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
>>> index 10e62bc..4d7c7b2 100644
>>> --- a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
>>> +++ b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
>>> @@ -6,8 +6,8 @@ After=sys-subsystem-net-devices-%i.device
>>>  # NetworkManager users will probably want the dbus version instead.
>>>
>>>  [Service]
>>> -Type=simple
>>> -ExecStart=@BINDIR@/wpa_supplicant
>>> -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
>>> +Type=forking
>>> +ExecStart=@BINDIR@/wpa_supplicant -B
>>> -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
>>>
>>>  [Install]
>>>  Alias=multi-user.target.wants/wpa_supplicant@%i.service
>>>
>>>
>>> --
>>> Best regards,
>>> Timofey.
>>
>>
>>
>> --
>> Best regards,
>> Timofey.
>
>
>
> --
> Best regards,
> Timofey.



-- 
Have a nice day,
Timofey.



More information about the Hostap mailing list