From: Lennart Poettering Date: Tue, 5 Nov 2024 12:12:20 +0000 (+0100) Subject: man: document the timeout applied to /usr/lib/systemd/system-shutdown/ drop-in binaries X-Git-Tag: v256.8~36 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=f792b8020b00c73a599e73b2e22b2fa7cd9b9f8b;p=systemd%2F.git man: document the timeout applied to /usr/lib/systemd/system-shutdown/ drop-in binaries Fixes: #34949 (cherry picked from commit af080967bad2524d2fa2fef6ba5e9fcf18d3017e) --- diff --git a/man/systemd-poweroff.service.xml b/man/systemd-poweroff.service.xml index ec7ffdeb0d..c55260d380 100644 --- a/man/systemd-poweroff.service.xml +++ b/man/systemd-poweroff.service.xml @@ -44,7 +44,7 @@ kexec.target to execute the respective actions. When these services are run, they ensure that PID 1 is replaced by the - /usr/lib/systemd/systemd-shutdown tool which is then responsible for the actual + /usr/lib/systemd/systemd-shutdown binary which is then responsible for the actual shutdown. Before shutting down, this binary will try to unmount all remaining file systems (or at least remount them read-only), disable all remaining swap devices, detach all remaining storage devices and kill all remaining processes. @@ -58,12 +58,12 @@ /usr/lib/systemd/system-shutdown/ and pass one arguments to them: either poweroff, halt, reboot, or kexec, depending on the chosen action. All executables in this directory are executed - in parallel, and execution of the action is not continued before all executables finished. Note that - these executables are run after all services have been shut down, and after most - mounts have been unmounted (the root file system as well as /run/ and various API - file systems are still around though). This means any programs dropped into this directory must be - prepared to run in such a limited execution environment and not rely on external services or hierarchies - such as /var/ to be around (or writable). + in parallel, and execution of the action is not continued before all executables finished. (A safety + timeout of 90s is applied however.) Note that these executables are run after all + services have been shut down, and after most mounts have been unmounted (the root file system as well as + /run/ and various API file systems are still around though). This means any programs + dropped into this directory must be prepared to run in such a limited execution environment and not rely + on external services or hierarchies such as /var/ to be around (or writable). Note that systemd-poweroff.service (and the related units) should never be executed directly. Instead, trigger system shutdown with a command such as systemctl