[systemd-devel] On(Resume|suspend|hibernate) in unit files?
James May
fowlthe2nd at gmail.com
Sun Mar 3 15:41:27 PST 2013
On 1 March 2013 07:24, Cristian Rodríguez <crrodriguez at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130304/2a547855/attachment.html>
More information about the systemd-devel
mailing list