[systemd-devel] starting/stopping network interfaces with systemd
Lennart Poettering
lennart at poettering.net
Mon Oct 10 11:55:51 PDT 2011
On Sat, 08.10.11 11:09, Cliff Brake (cliff.brake at gmail.com) wrote:
> ENV{key} Match against a device property value.
>
> And from systemd documentation:
>
> systemd.device: SYSTEMD_WANTS= Adds dependencies of type Wants from
> this unit to all listed units. This may be used to activate arbitrary
> units, when a specific device becomes available. Note that this and
> the other tags are not taken into account unless the device is tagged
> with the "systemd" string in the udev database, because otherwise the
> device is not exposed as systemd unit.
>
> I'm having trouble connecting all the dots, or figuring out ways to
> debug this. Appreciate any additional suggestions or documentation.
Note that network devices are tagged "systemd" by default anyway. All
you need to add is a rule that pulls does
ENV{SYSTEMD_WANTS}="ifup@%k.service" or so, for the device you are
interested in (or all of them).
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list