[systemd-devel] On(Resume|suspend|hibernate) in unit files?
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the systemd-devel