Re: wpa supplicant init and logging
On Wed, 15 Oct 2008, Ricardo Carrano wrote: Date: Wed, 15 Oct 2008 21:02:24 -0300 From: Ricardo Carrano [EMAIL PROTECTED] To: tech-team [EMAIL PROTECTED], Devel [EMAIL PROTECTED] Subject: wpa supplicant init and logging Hello all! I need help understanding two things regarding the wpa supplicant on the XO. 1 - The init process: If you boot your XO and check the running wpa processes, here is what you'll see: # ps aux | grep wpa root 1310 0.1 0.7 5444 1848 ?S23:46 0:00 /usr/sbin/wpa_supplicant -g /var/run/wpa_supplicant-global -ddd -t But this is not what I would expect by inspecting /etc/init.d/wpa_supplicant and /etc/sysconfig/wpa_supplicant. Actually, after you do a service wpa_supplicant restart you would get what I would expect. # ps aux | grep wpa root 1502 0.0 0.2 5444 580 ?Ss 23:49 0:00 wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -B -u -f /var/log/wpa_supplicant.log Where is the first coming from? NetworkManager it uses wpa_supplicant for wireless authentication /sbin/chkconfig wpa_supplicant --list should show that wpa_supplicant service is not enabled so there is not a service running twice, or the additional overhead of it. 2 - The logging Even if I enable -ddd on the logging (for instance by adding '-ddd' to OTHER_ARGS in /etc/sysconfig/wpa_supplicant and restart the daemon, I won't get anything interesting on the log (/var/log/wpa_supplicant.log). All I got after interesting associations to wpa aps is the following. its because NetworkManager starts wpa_supplicant and uses its own controls for running wpa_supplicant -- Dennis Gilmore (RHCE) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
wpa supplicant init and logging
Hello all! I need help understanding two things regarding the wpa supplicant on the XO. 1 - The init process: If you boot your XO and check the running wpa processes, here is what you'll see: # ps aux | grep wpa root 1310 0.1 0.7 5444 1848 ?S23:46 0:00 /usr/sbin/wpa_supplicant -g /var/run/wpa_supplicant-global -ddd -t But this is not what I would expect by inspecting /etc/init.d/wpa_supplicant and /etc/sysconfig/wpa_supplicant. Actually, after you do a service wpa_supplicant restart you would get what I would expect. # ps aux | grep wpa root 1502 0.0 0.2 5444 580 ?Ss 23:49 0:00 wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -B -u -f /var/log/wpa_supplicant.log Where is the first coming from? 2 - The logging Even if I enable -ddd on the logging (for instance by adding '-ddd' to OTHER_ARGS in /etc/sysconfig/wpa_supplicant and restart the daemon, I won't get anything interesting on the log (/var/log/wpa_supplicant.log). All I got after interesting associations to wpa aps is the following. Providing DBus service 'fi.epitest.hostap.WPASupplicant'. Daemonize.. Any help or ideas will be highly appreciated! Cheers! Ricardo ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Techteam] wpa supplicant init and logging
ricardo wrote: Hello all! I need help understanding two things regarding the wpa supplicant on the XO. 1 - The init process: If you boot your XO and check the running wpa processes, here is what you'll see: # ps aux | grep wpa root 1310 0.1 0.7 5444 1848 ?S23:46 0:00 /usr/sbin/wpa_supplicant -g /var/run/wpa_supplicant-global -ddd -t But this is not what I would expect by inspecting /etc/init.d/wpa_supplicant and /etc/sysconfig/wpa_supplicant. Actually, after you do a service wpa_supplicant restart you would get what I would expect. # ps aux | grep wpa root 1502 0.0 0.2 5444 580 ?Ss 23:49 0:00 wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -B -u -f /var/log/wpa_supplicant.log Where is the first coming from? if i run strings /usr/bin/NetworkManager i find: /usr/sbin/wpa_supplicant -ddd so i'd be suspicious that NetworkManager (re)starts wpa_supplicant. (if this is the case, we should perhaps remove (or disable) /etc/init.d/wpa_supplicant, since presumably all it does is slow our boot.) paul 2 - The logging Even if I enable -ddd on the logging (for instance by adding '-ddd' to OTHER_ARGS in /etc/sysconfig/wpa_supplicant and restart the daemon, I won't get anything interesting on the log (/var/log/wpa_supplicant.log). All I got after interesting associations to wpa aps is the following. Providing DBus service 'fi.epitest.hostap.WPASupplicant'. Daemonize.. Any help or ideas will be highly appreciated! Cheers! Ricardo ___ Techteam mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/techteam =- paul fox, [EMAIL PROTECTED] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel