I would like to execute some simple commands during the shutdown of a Debian desktop. I have 2 external drives that get power through an external USB power adapter, and they will not spin down after a normal shutdown of the desktop.
I know I should read up on systemd, but is there a service that gets executed on shutdown that I can piggyback on, with my commands? Not the cleanest solution, but probably easier for me at this point.
The commands will be to spin down the disks, after exporting the zpool that they carry