On Fri, 2021-03-26 at 23:36 -0400, R. G. Newbury wrote: > > > Subject: Identifying what is accessing a USB device. > > > I have an external USB-3 2-disk docking station, and a script which > > can > > power up and down the drives as needed. > > > > I have a systemd automount unit that correctly powers up the dock > > when > > accessed, then mounts the drives (thanks Ed). > > > > After an idle time, automount unmounts the drives. A script detects > > when this happens and powers them down ... *at which point they > > immediately power up again, and remain up until I intervene > > manually, > > even though they are unmounted*. > > > > This never happens if I run the script directly from the command > > line > > (i.e. the drives power down and stay down). > > > I'm open to suggestions if anyone has any ideas. > > The systemd service unit has a Restart=on-failure, or a > Restart=always > line??? No, nothing like that. poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure