On Fri, 17.02.17 18:09, Reverend Homer (mk.43.e...@gmail.com) wrote:

> Hi,
> 
> is there any way to start user service before/after suspend.target? In
> wiki.archlinux.org there are only system sleep hooks [1]. I tried to lock the
> screen before suspend and put the service inspired by [2] in
> ~/.config/systemd/user/. But this service just did not start.

Use inhibitor locks:

https://www.freedesktop.org/wiki/Software/systemd/inhibit/

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to