On 1 March 2013 07:24, Cristian Rodríguez <crrodrig...@opensuse.org> wrote:
> Having this confessed non-ideal ReloadOnResume ,StopOnSuspend in unit > files etc will make extremely easy to avoid relying on either pm-utils > hooks or those new in /usr/lib/systemd/systemd-sleep and having to patch > buggy software, most likely by introducing more dependencies and more bugs > into already roting legacy pieces of code. > > Would not Conflicts=sleep.target do what you want? (I tried to test it out but suspend is broken on my system at the moment... :/) This would only cover systemd/systemctl initiated PM transitions AFAICT though - ie. something manually echoing mem into /sys/power/state would be missed.
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel