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

Andrei Borzenkov arvidjaar at gmail.com
Tue Jun 7 13:13:34 UTC 2016


On Tue, Jun 7, 2016 at 1:14 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> 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.
>

*user* service unit? How can system unit have dependency on user unit
(or in other direction)? Can you give an example?


More information about the systemd-devel mailing list