I can write unit files, which depend on a mount, because I can list them and then add to
Requires=xxx, such as:
# systemctl list-units | grep data mount-data.service loaded active exited Manage the data partition
What I am trying to do is to make service start when webcam is plugged into device.
systemctl list-units | grep video0 returns nothing. Can someone explain me in simple terms, what do I do to ensure that? What I do want to happen is start service when
/dev/video1, etc appear.
I got a clue from this post, that I will need to write a udev rule, but I have no idea what exactly needs to be done here. Help?