[systemd-devel] execute OneShot user unit upon resume from suspend?

Lennart Poettering lennart at poettering.net
Tue Jun 7 10:14:01 UTC 2016


On Sun, 05.06.16 20:07, Anders Papitto (anderspapitto at gmail.com) wrote:

> Hello,
> 
> what is the best way to cause a user unit to trigger upon resuming from suspend?

You could write a service that is pulled in by suspend.target and
orderes itself after systemd-suspend.service.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list