On Wed, Mar 27, 2024, 16:36 Orion Poplawski <orion@xxxxxxxx> wrote:
Can I setup a unit that gets started automatically when a particular
dev-disk-by-uuid device becomes present?
Just link it under dev-disk-foo.device.wants/ (systemctl enable, or systemctl add-wants).
Alternatively, ENV{SYSTEMD_WANTS}="foo.service" from udev will have the same effect.
Thanks.
--
Orion Poplawski
he/him/his - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxx
Boulder, CO 80301 https://www.nwra.com/