systemd restart service on resume
lists at colorremedies.com
Sun Dec 8 18:14:32 UTC 2013
On Dec 8, 2013, at 10:14 AM, Greg Woods <woods at ucar.edu> wrote:
> I am trying to find a way to get a service to restart when the system is
> resumed from suspend or hibernation. I can get something to run when the
> system is put to sleep by using sleep.target (for example, I have an
> "ssh-suspend" service that kills all the ssh sessions because they are
> always hung after a resume and I have to close the windows manually
> anyway), but I haven't figured out the exact incantation to get a
> service to restart on resume. Saying "After=sleep.target" has not
> worked, and there doesn't seem to be anything like a resume.target or
> wakeup.target .
I think this is a good question to ask on systemd-devel@ list. The devs are quite responsive, and if it's too simple a question then there are more advanced users lurking who'd likely answer.
More information about the users