[systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

Kay Sievers kay at vrfy.org
Fri Jul 12 06:40:22 PDT 2013


On Fri, Jul 12, 2013 at 3:31 PM, Lennart Poettering
<lennart at poettering.net> wrote:

>> >   ConditionFileContains=/sys/module/sn/parameters/enabled:1

> To make this clear: I am not keen on adding this. I can see the
> usefulness, and the thing is still simple enough so that it would be OK
> to add this, but if you guys don't actually need that I'd prefer to keep
> our codebase smaller...

Just a note:
The above example should be triggered by a udev rule anyway.

During bootup:
  udevadm trigger --type=subsystems

will coldplug all modules, and udev rules can catch the content of a
module parameter and pull-in a service on demand.

Kay


More information about the systemd-devel mailing list