1 |
Yesterday I updated both systemd (218-r3) and wpa (2.3-r2) and discovered |
2 |
the systemd unit files are not as easy to understand as they were. |
3 |
|
4 |
journalctl says: Job wpa_supplicant@××××××××××.service/start failed with |
5 |
result 'dependency'. (And doesn't say what the 'dependency' is.) |
6 |
|
7 |
That's confusing because there is no unit file with that name. systemd is |
8 |
apparently inserting strings like "@multi-user" in the middle of real unit |
9 |
file names to create that log message. |
10 |
|
11 |
wpa_supplicant now installs more unit files than before: |
12 |
|
13 |
#systemctl list-unit-files | grep wpa |
14 |
wpa_supplicant-nl80211@.service enabled |
15 |
wpa_supplicant-wired@.service disabled |
16 |
wpa_supplicant.service disabled |
17 |
wpa_supplicant@.service disabled |
18 |
|
19 |
#cat /usr/lib64/systemd/system/wpa_supplicant-nl80211\@.service |
20 |
[Unit] |
21 |
Description=WPA supplicant daemon (interface- and nl80211 driver-specific version) |
22 |
Requires=sys-subsystem-net-devices-%i.device |
23 |
After=sys-subsystem-net-devices-%i.device |
24 |
|
25 |
[Service] |
26 |
Type=simple |
27 |
ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I |
28 |
|
29 |
[Install] |
30 |
Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service |
31 |
|
32 |
|
33 |
Now, if I type that ExecStart command from a bash prompt it works perfectly, |
34 |
so why is systemd failing to start wpa_supplicant? I dunno. |
35 |
|
36 |
I'm assuming the %I stands for wlan0, so that's the way I named the conf file: |
37 |
/etc/wpa_supplicant/wpa_supplicant-nl80211-wlan0.conf but maybe I'm wrong about |
38 |
that? |
39 |
|
40 |
Thanks for any clues. |