wpa_supplicant service fails to autostart on Fedora 8

Robert Allerstorfer linux-ra at anet.at
Mon Dec 31 07:47:30 EST 2007


I am trying to activate the wlan0 device automatically at booting
Fedora 8. It should associate to my WPA2-personal protected Access
Point. Since NetworkManager 0.7 svn3109 does NOT work for this, I
don't start that service. Instead, I have set the wpa_supplicant
service to autostart. This will run
'wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
-Dwext -B -u -f -d'
which fails while booting:
[root at localhost ~]# cat /var/log/wpa_supplicant.log
Could not acquire the system bus.

However, the same command succeeds in an already booted system:
[root at localhost ~]# grep "State: " /var/log/wpa_supplicant.log
State: DISCONNECTED -> SCANNING
State: SCANNING -> ASSOCIATING
State: ASSOCIATING -> ASSOCIATED
State: ASSOCIATED -> 4WAY_HANDSHAKE
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
State: GROUP_HANDSHAKE -> COMPLETED

The autostart failure seems to be related to wpa_supplicant's -u
option (enable DBus control interface). Here is the order of all
services to be autostarted in the default runlevel:

[root at localhost ~]# ls -l /etc/rc.d/rc5.d | grep S
lrwxrwxrwx 1 root root 15 2007-12-29 23:28 S05kudzu -> ../init.d/kudzu
lrwxrwxrwx 1 root root 18 2007-12-29 23:24 S06cpuspeed -> ../init.d/cpuspeed
lrwxrwxrwx 1 root root 19 2007-12-29 11:55 S08ip6tables -> ../init.d/ip6tables
lrwxrwxrwx 1 root root 18 2007-12-29 11:54 S08iptables -> ../init.d/iptables
lrwxrwxrwx 1 root root 14 2007-12-29 23:39 S09isdn -> ../init.d/isdn
lrwxrwxrwx 1 root root 17 2007-12-29 23:28 S10network -> ../init.d/network
lrwxrwxrwx 1 root root 16 2007-12-29 23:20 S11auditd -> ../init.d/auditd
lrwxrwxrwx 1 root root 21 2007-12-29 23:30 S12restorecond -> ../init.d/restorecond
lrwxrwxrwx 1 root root 24 2007-12-31 03:48 S12wpa_supplicant -> ../init.d/wpa_supplicant
                                              ^^^^^^^^^^^^^^
lrwxrwxrwx 1 root root 20 2007-12-29 11:58 S13irqbalance -> ../init.d/irqbalance
lrwxrwxrwx 1 root root 17 2007-12-29 23:20 S13rpcbind -> ../init.d/rpcbind
lrwxrwxrwx 1 root root 17 2007-12-29 23:39 S14nfslock -> ../init.d/nfslock
lrwxrwxrwx 1 root root 19 2007-12-29 23:37 S15mdmonitor -> ../init.d/mdmonitor
lrwxrwxrwx 1 root root 19 2007-12-29 23:39 S18rpcidmapd -> ../init.d/rpcidmapd
lrwxrwxrwx 1 root root 17 2007-12-29 23:39 S19rpcgssd -> ../init.d/rpcgssd
lrwxrwxrwx 1 root root 15 2007-12-29 23:28 S25netfs -> ../init.d/netfs
lrwxrwxrwx 1 root root 15 2007-12-29 23:44 S25pcscd -> ../init.d/pcscd
lrwxrwxrwx 1 root root 17 2007-12-29 12:35 S26rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root 19 2007-12-29 23:28 S26udev-post -> ../init.d/udev-post
lrwxrwxrwx 1 root root 20 2007-12-29 12:35 S27messagebus -> ../init.d/messagebus
lrwxrwxrwx 1 root root 24 2007-12-29 12:35 S27setroubleshoot -> ../init.d/setroubleshoot
lrwxrwxrwx 1 root root 16 2007-12-29 23:24 S28autofs -> ../init.d/autofs
lrwxrwxrwx 1 root root 19 2007-12-29 12:35 S50bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root 17 2007-12-29 12:35 S50iprinit -> ../init.d/iprinit
lrwxrwxrwx 1 root root 19 2007-12-29 12:35 S50iprupdate -> ../init.d/iprupdate
lrwxrwxrwx 1 root root 17 2007-12-29 12:35 S51iprdump -> ../init.d/iprdump
lrwxrwxrwx 1 root root 14 2007-12-29 23:39 S55sshd -> ../init.d/sshd
lrwxrwxrwx 1 root root 18 2007-12-29 12:35 S80sendmail -> ../init.d/sendmail
lrwxrwxrwx 1 root root 20 2007-12-29 23:28 S90ConsoleKit -> ../init.d/ConsoleKit
lrwxrwxrwx 1 root root 15 2007-12-29 23:24 S90crond -> ../init.d/crond
lrwxrwxrwx 1 root root 13 2007-12-29 23:24 S95atd -> ../init.d/atd
lrwxrwxrwx 1 root root 22 2007-12-29 17:15 S96avahi-daemon -> ../init.d/avahi-daemon
lrwxrwxrwx 1 root root 22 2007-12-29 12:28 S97yum-updatesd -> ../init.d/yum-updatesd
lrwxrwxrwx 1 root root 14 2007-12-29 23:37 S98cups -> ../init.d/cups
lrwxrwxrwx 1 root root 19 2007-12-29 23:43 S98haldaemon -> ../init.d/haldaemon
lrwxrwxrwx 1 root root 17 2007-12-29 11:58 S99anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 19 2007-12-29 23:36 S99firstboot -> ../init.d/firstboot
lrwxrwxrwx 1 root root 11 2007-12-29 23:28 S99local -> ../rc.local

Should this order be tweaked for wpa_supplicant to start successfully?

rob.





mfg,

Ing. Robert Allerstorfer
ANET - New Media Solutions
Allerstorfer & Beutel OEG
www.anet.at

--




More information about the HostAP mailing list