[systemd-devel] Service reactivation with device plugging

Lennart Poettering lennart at poettering.net
Mon Jul 9 15:17:11 PDT 2012


On Wed, 04.07.12 01:44, Rob Spanton (rspanton at zepler.net) wrote:

> Hi Mirco,
> 
> Mirco Tischler wrote:
> > For clues on how to let udev start things for you see the
> > systemd.device man page  A unit like this should work with udev
> > activation:
> > 
> > [Unit]
> > Description=...
> > BindTo=dev-serial-a.device dev-serial-b.device
> > After=dev-serial-a.device dev-serial-b.device
> 
> I think I tried switching to use BindTo instead of Requires at some
> point, and it still didn't get me what I wanted -- possibly due to some
> interaction with the watchdog stuff that I was using.
> 
> I'll see whether I can replicate the situation.  If anyone knows of a
> way of persuading udev to generate 'pretend' events for non-existent
> devices, then replicating this in a way other people could see would be
> made much easier...

Hmm, maybe use some other device for testing this? For example if you
have two USB sticks around you could just use that? They are exposed as
.device units anyway, and easy to plugin/remove.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list