You are not logged in.

#1 2012-08-15 12:24:11

hkon
Member
Registered: 2011-02-15
Posts: 17

Systemd .service files typo

When installing systemd, I had quite some problems trying to get wpa_supplicant to work with it. After a load of head-scratching and rebooting, I found that /usr/lib/systemd/system/wpa_supplicant@.service appeared to have a typo. wpa_supplicant@.service Requires(and is called After) sys-subsystem-net-devices-%i.device(Line 3 and 4). This surprised me, as the rest of the file's occurances of "%i" are with uppercase i's. So, I changed "%i" to "%I", rebooted, and bam! it worked. So, I was originally going to file a bug about this, but suddenly realized that wpa_supplicant@.service was not the only file using lowercase i's.

[root@Soundwave]system# pwd                                                                                                                                                                                                                                                                                       
/usr/lib/systemd/system
[root@Soundwave]system# find . | xargs grep "%i"                                                                                                                                                                                                                                         
./wpa_supplicant-wired@.service:Requires=sys-subsystem-net-devices-%i.device
./wpa_supplicant-wired@.service:After=sys-subsystem-net-devices-%i.device
./serial-getty@.service:BindsTo=dev-%i.device
./serial-getty@.service:After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
./systemd-fsck@.service:BindsTo=%i.device
./systemd-fsck@.service:After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device
./openvpn@.service:Description=OpenVPN connection to %i
./openvpn@.service:ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --cd /etc/openvpn
./wpa_supplicant-nl80211@.service:Requires=sys-subsystem-net-devices-%i.device
./wpa_supplicant-nl80211@.service:After=sys-subsystem-net-devices-%i.device
./wpa_supplicant@.service:Requires=sys-subsystem-net-devices-%i.device
./wpa_supplicant@.service:After=sys-subsystem-net-devices-%i.device

My wpa_supplicant did not work with lowercase i's. So, is this a typo or is this somehow how it's supposed to be?

Offline

Board footer

Powered by FluxBB