[systemd-devel] Starting a unit on resume from suspend/hibernate

Andrei Borzenkov arvidjaar at gmail.com
Thu Apr 2 10:12:21 PDT 2015


В Thu, 2 Apr 2015 18:43:40 +0200 (CEST)
Dimitrios Apostolou <jimis at gmx.net> пишет:

> Conflicts=sleep.target
> WantedBy=multi-user.target sleep.target

These are mutually conflicting. One one hand Conflicts says to stop your
unit when sleep.target gets started, on the other hand WantedBy says to
start your unit when sleep.target gets started. Only one can win.

As workaround you can start your unit
in /usr/lib/systemd/sytem-sleep script post-resume.


More information about the systemd-devel mailing list