[systemd-devel] Start and stop actions of device units

2013-04-13 Thread Léo Gillot-Lamure
Hi. Would it be possible to bind something to the start and stop actions of a device unit ? I've got a device (a hard drive) that I can programmatically plug/unplug using commands such as echo '0 0 0' /sys/class/scsi_host/host1/ scan and echo 1

Re: [systemd-devel] Start and stop actions of device units

2013-04-13 Thread Colin Guthrie
'Twas brillig, and Léo Gillot-Lamure at 13/04/13 11:11 did gyre and gimble: Hi. Would it be possible to bind something to the start and stop actions of a device unit ? I've got a device (a hard drive) that I can programmatically plug/unplug using commands such as echo '0 0 0'

Re: [systemd-devel] Start and stop actions of device units

2013-04-13 Thread Kay Sievers
On Sat, Apr 13, 2013 at 12:11 PM, Léo Gillot-Lamure leo.gil...@navaati.net wrote: Hi. Would it be possible to bind something to the start and stop actions of a device unit ? I've got a device (a hard drive) that I can programmatically plug/unplug using commands such as echo '0 0 0'

Re: [systemd-devel] Start and stop actions of device units

2013-04-13 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Apr 13, 2013 at 12:30:33PM +0100, Colin Guthrie wrote: 'Twas brillig, and Léo Gillot-Lamure at 13/04/13 11:11 did gyre and gimble: Hi. Would it be possible to bind something to the start and stop actions of a device unit ? I've got a device (a hard drive) that I can