[systemd-devel] How to suspend and wait for resume

Lennart Poettering lennart at poettering.net
Fri Aug 15 08:19:45 PDT 2014


On Mon, 07.07.14 21:17, Maciej Piechotka (uzytkownik2 at gmail.com) wrote:

> Hi,
> 
> I have following problem. I'd like to suspend and then after the 
> system resumes execute a command - problem is that systemctl suspend 
> finishes immediately, without waiting for the resume. Is there a way 
> of executing a command after the resume has happened as user or do I 
> need to add something as resume dispatcher?

I think we should fix "systemctl suspend" to simply block until we come
back. Added to the TODO list now.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list