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

Lennart Poettering lennart at poettering.net
Tue Jul 12 18:18:48 PDT 2011


On Tue, 12.07.11 17:15, Alexander E. Patrakov (patrakov at gmail.com) wrote:

> > > > And finally, how do you guarantee the correct ordering - i.e. that 
> > > > wpa_supplicant should not start before the interface appears?
> > > 
> > > Ah, right. Is "After=sys-devices-*-net-%I.device" possible and
> > > sufficient? systemd.unit(5) doesn't say anything about globbing.
> 
> I suppose there is no need to apply globs, because of the following udev
> rule that exists in 99-systemd.rules:
> 
> SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd",
> ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/%k"

I don't think SYSTEMD_ALIAS should really be used by anybody but systemd
upstream really. This udev line exists primarily to ensure we stay
compatible with with future kernels which will replace /sys/bus by
/sys/subsystem.

You are welcome to use SYSTEMD_WANTS however. See systemd.device(5) for
more information.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list