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

Léo Gillot-Lamure leo.gillot at navaati.net
Sat Apr 13 03:11:31 PDT 2013


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
>
/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/delete".
The goal is reducing noise.
It would be nice to bind these commands in the device unit itself so
that other units needing it can start it by themselves, etc.

Thanks,

Léo Gillot-Lamure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130413/4f8fc72d/attachment.html>


More information about the systemd-devel mailing list