[systemd-devel] [PATCH 1/2] wpa_supplicant: Add systemd support

Alexander E. Patrakov patrakov at gmail.com
Mon Jul 11 15:13:52 PDT 2011


Henry Gebhardt wrote:

> --- /dev/null
> +++ b/wpa_supplicant/systemd/wpa_supplicant at .service @@ -0,0 +1,11 @@
> +[Unit]
> +Description=WPA supplicant daemon (interface-specific version)
> +# NetworkManager users will probably want the dbus version instead.
> +[Service]
> +Type=simple
> +ExecStart=/sbin/wpa_supplicant
> -c/etc/wpa_supplicant/wpa_supplicant.conf -i%I
> +[Install]
> +Alias=network.target.wants/wpa_supplicant at wlan0.service

This is not enough to get a working wpa_supplicant on a wired interface 
that uses 802.1X - we need -Dwired in this case.

Also, there is a use case for two wpa_supplicants on two interfaces, with 
different configs: one for normal wireless, one for wired 802.1X, with 
different interface metrics. Your service file doesn't support this.

And finally, how do you guarantee the correct ordering - i.e. that 
wpa_supplicant should not start before the interface appears?

-- 
Alexander E. Patrakov



More information about the systemd-devel mailing list