[systemd-devel] execute OneShot user unit upon resume from suspend?
Lennart Poettering
lennart at poettering.net
Tue Jun 7 13:21:43 UTC 2016
On Tue, 07.06.16 16:13, Andrei Borzenkov (arvidjaar at gmail.com) wrote:
> 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?
Oh, I didn't see that. There's no provison for that, sorry. You#d have
to write a program that watches bus signals and does something. Sorry.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list