Re: Need to run a command after suspend, was a service in systemd.
Reply #2 –
AFAIK, both openrc and runit doesn't handle suspend/hibernate oneshot service (although in runit you can do it in a hacky way). logind (in our case, elogind) handles that. In /usr/lib/elogind/system-sleep directory, specifically.
For the details of the suspend hook, see man 1 loginctl, the Hook Directories part.