On Mar 12, 2021, at 19:05, Ed Greshko <ed.greshko(a)greshko.com> wrote:
I don't think systemd was meant to solve these sorts of issues
Honestly, systemd is more equipped to handle this kind of issue than any init system
before it. Being able to attach dependencies in a .mount unit to a .service unit is
something that would have required a bunch of hacks or the autofs service.
I use a network filesystem every day that has a .mount unit that requires a .service to be
launched before it can be mounted (kAFS, see kafs-utils package). It isn’t as complicated
as the usb power on/off, but not outside of the realm of possibility.
—
Jonathan Billings