Re: [systemd-devel] Passing variables from udev to unit

2014-03-16 Thread Peter Hutterer
On 15/03/2014 07:11 , Lennart Poettering wrote: On Fri, 14.03.14 08:53, Peter Hutterer (peter.hutte...@who-t.net) wrote: Hey, I have a service file wacom-inputattach@.service that is started from a udev rule: SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd"

Re: [systemd-devel] Passing variables from udev to unit

2014-03-15 Thread Lennart Poettering
On Fri, 14.03.14 08:53, Peter Hutterer (peter.hutte...@who-t.net) wrote: > Hey, > > I have a service file wacom-inputattach@.service that is started from a udev > rule: > > SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", > TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattac

Re: [systemd-devel] Passing variables from udev to unit

2014-03-14 Thread Peter Hutterer
On Fri, Mar 14, 2014 at 06:27:26AM +0400, Andrey Borzenkov wrote: > В Fri, 14 Mar 2014 08:53:45 +1000 > Peter Hutterer пишет: > > > Hey, > > > > I have a service file wacom-inputattach@.service that is started from a udev > > rule: > > > > SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}

Re: [systemd-devel] Passing variables from udev to unit

2014-03-13 Thread Andrey Borzenkov
В Fri, 14 Mar 2014 08:53:45 +1000 Peter Hutterer пишет: > Hey, > > I have a service file wacom-inputattach@.service that is started from a udev > rule: > > SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", > TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service" >

[systemd-devel] Passing variables from udev to unit

2014-03-13 Thread Peter Hutterer
Hey, I have a service file wacom-inputattach@.service that is started from a udev rule: SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service" and the service file then runs: ExecStart=/usr/bin/inputattach -w8001