On Sat, 2021-03-13 at 08:49 -0500, Jonathan Billings wrote:
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.
I assume you mean kafs-client (there is no kafs-utils in the standard
repo). I'll have a look at that as a model.
poc