Re: [systemd-devel] Service reactivation with device plugging

2012-07-09 Thread Lennart Poettering
On Wed, 04.07.12 01:44, Rob Spanton (rspan...@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=d

Re: [systemd-devel] Service reactivation with device plugging

2012-07-09 Thread Lennart Poettering
On Wed, 04.07.12 00:10, Rob Spanton (rspan...@zepler.net) wrote: > Hi, > > I was recently working on an embedded system that had a daemon that > depended on the presence of two USB serial devices. The daemon needed > to be run when both devices were plugged in. If any of the devices was > unplu

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Rob Spanton
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

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Mirco Tischler
2012/7/4 Kok, Auke-jan H : > On Tue, Jul 3, 2012 at 4:49 PM, Rob Spanton wrote: >> Hi, >> >> I wrote: >>> I was recently working on an embedded system that had a daemon >>> [ ...which] needed to be run when both [serial] devices were plugged >>> in. If any of the devices was unplugged, the daemon

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Kok, Auke-jan H
On Tue, Jul 3, 2012 at 4:49 PM, Rob Spanton wrote: > Hi, > > I wrote: >> I was recently working on an embedded system that had a daemon >> [ ...which] needed to be run when both [serial] devices were plugged >> in. If any of the devices was unplugged, the daemon would exit, and >> would need to b

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Rob Spanton
Hi, I wrote: > I was recently working on an embedded system that had a daemon > [ ...which] needed to be run when both [serial] devices were plugged > in. If any of the devices was unplugged, the daemon would exit, and > would need to be restarted the next time both devices were plugged in. Auke

Re: [systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Kok, Auke-jan H
On Tue, Jul 3, 2012 at 4:10 PM, Rob Spanton wrote: > I was recently working on an embedded system that had a daemon that > depended on the presence of two USB serial devices. The daemon needed > to be run when both devices were plugged in. If any of the devices was > unplugged, the daemon would

[systemd-devel] Service reactivation with device plugging

2012-07-03 Thread Rob Spanton
Hi, I was recently working on an embedded system that had a daemon that depended on the presence of two USB serial devices. The daemon needed to be run when both devices were plugged in. If any of the devices was unplugged, the daemon would exit, and would need to be restarted the next time both