On Thu, 2021-03-11 at 07:47 -0500, Jonathan Billings wrote:
> On Mar 10, 2021, at 20:18, Ed Greshko <ed.greshko(a)greshko.com> wrote:
> >
> > The answer may be "none of the above".
> >
> > Diving into systemd documentation it seems that the sections included in the
mount and automount unit files
> > don't define those lines. :-(
>
> There isn’t anything about exec lines in a .mount unit, which is why I said to have
a .service unit that is a requirement and is triggered to start / stop when the mount is
mounted / unmounted.
>
> Here’s my post:
>
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.o...
Yes, I had noticed that. What isn't clear to me is how this would work
on system reboot. I need to be able to power down the drive not just
after it's unmounted, but when the system is rebooted and the drive
hasn't been mounted in the first place, i.e. a non-event.
Someone on the SystemD list suggested using an @reboot line in crontab
for this, as a special case.
poc