<div class="gmail_quote">On 1 March 2013 07:24, Cristian Rodríguez <span dir="ltr"><<a href="mailto:crrodriguez@opensuse.org" target="_blank">crrodriguez@opensuse.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<div class="HOEnZb">
<div class="h5"><br></div></div></blockquote><div><br>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... :/)<br><br>This would only cover systemd/systemctl initiated PM transitions AFAICT though - ie. something manually echoing <code class="literal">mem</code> into
<code class="filename">/sys/power/state </code>would be missed.<br></div></div>