systemd restart service on resume

Chris Murphy lists at
Sun Dec 8 18:14:32 UTC 2013

On Dec 8, 2013, at 10:14 AM, Greg Woods <woods at> 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 (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 "" has not
> worked, and there doesn't seem to be anything like a or
> .

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.

Chris Murphy

More information about the users mailing list