Red Hat Bugzilla – Bug 807509
[RFE] Drop -u from .service file
Last modified: 2014-12-10 21:41:20 EST
Description of problem:
The -u flag is already specified in the wpa_supplicant.conf file; the .service file doesn't need it.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.
(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)
More information and reason for this action is here:
Can we move this to Fedora 20?
Not only is -u duplicated, some other command line arguments are duplicated in
The first contains:
ExecStart=/usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS $OTHER_ARGS
and the second defines OTHER_ARGS as
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
thus I end up with a command line like
/usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dwext -u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid
A couple more questions:
- why does systemd's sevice file force -u, and makes the service type dbus, which the sysconfig file claims is only needed for NetworkManager, in cases, like mine, where NM is masked?
- the file in sysconfig has this comment
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
but I don't seem to have a wpa_supplicant.init.d file or directory in my system and -B doesn't show up in the command line, so this comment may be obsolete
(In reply to Henrique Martins from comment #4)
> Can we move this to Fedora 20?
Moved to Rawhide and marked as an RFE, so it will stay Rawhide.
> Not only is -u duplicated, some other command line arguments are duplicated
Wow, yeah, there are a lot more there.
wpa_supplicant.service is now Type=dbus, so -u is required, but -u is not in the service file now and fails because systemd kills it after a timeout of wpa_supplicant not setting up the expected bus because I had removed -u from the sysconfig file.