From 78e9bb837c258ac0ec7712b3d612cc2f407e731e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:42 +0200 Subject: Merging upstream version 256. Signed-off-by: Daniel Baumann --- man/systemd-suspend.service.xml | 43 ++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 18 deletions(-) (limited to 'man/systemd-suspend.service.xml') diff --git a/man/systemd-suspend.service.xml b/man/systemd-suspend.service.xml index 02daecf..c5833b2 100644 --- a/man/systemd-suspend.service.xml +++ b/man/systemd-suspend.service.xml @@ -1,6 +1,6 @@ + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> - systemd-suspend.service - systemd-hibernate.service - systemd-hybrid-sleep.service - systemd-suspend-then-hibernate.service - /usr/lib/systemd/system-sleep + + systemd-suspend.service + systemd-hibernate.service + systemd-hybrid-sleep.service + systemd-suspend-then-hibernate.service + /usr/lib/systemd/system-sleep + @@ -64,15 +66,15 @@ same executables are run, but the first argument is now post. All executables in this directory are executed in parallel, and execution of the action is not continued - until all executables have finished. + until all executables have finished. Note that user.slice will + be frozen while the executables are running, so they should not attempt to + communicate with any user services expecting a reply. Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications - want to react to system suspend/hibernation and resume, - they should rather use the Inhibitor - interface. + want to react to system suspend/hibernation and resume, they should rather use the + Inhibitor Locks. Note that systemd-suspend.service, systemd-hibernate.service, systemd-hybrid-sleep.service, and @@ -88,6 +90,11 @@ sleep.conf.d file. See systemd-sleep.conf5. + + Note that by default these services freeze user.slice while they run. This prevents + the execution of any process in any of the user sessions while the system is entering into and resuming from + sleep. Thus, this prevents the hooks in /usr/lib/systemd/system-sleep/, or any other process + for that matter, from communicating with any user session process during sleep. @@ -117,13 +124,13 @@ See Also - - systemd-sleep.conf5, - systemd1, - systemctl1, - systemd.special7, - systemd-halt.service8 - + + systemd-sleep.conf5 + systemd1 + systemctl1 + systemd.special7 + systemd-halt.service8 + -- cgit v1.2.3