2 .TH "SYSTEMD\-HALT\&.SERVICE" "8" "" "systemd 219" "systemd-halt.service"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 systemd-halt.service, systemd-poweroff.service, systemd-reboot.service, systemd-kexec.service, systemd-shutdown \- System shutdown logic
26 systemd\-halt\&.service
28 systemd\-poweroff\&.service
30 systemd\-reboot\&.service
32 systemd\-kexec\&.service
34 /usr/lib/systemd/systemd\-shutdown
37 systemd\-halt\&.service
38 is a system service that is pulled in by
40 and is responsible for the actual system halt\&. Similarly,
41 systemd\-poweroff\&.service
44 systemd\-reboot\&.service
48 systemd\-kexec\&.service
51 to execute the respective actions\&.
53 When these services are run, they ensure that PID 1 is replaced by the
54 /usr/lib/systemd/systemd\-shutdown
55 tool which is then responsible for the actual shutdown\&. Before shutting down, this binary will try to unmount all remaining file systems, disable all remaining swap devices, detach all remaining storage devices and kill all remaining processes\&.
57 It is necessary to have this code in a separate binary because otherwise rebooting after an upgrade might be broken\ \&\(em the running PID 1 could still depend on libraries which are not available any more, thus keeping the file system busy, which then cannot be re\-mounted read\-only\&.
59 Immediately before executing the actual system halt/poweroff/reboot/kexec
61 will run all executables in
62 /usr/lib/systemd/system\-shutdown/
63 and pass one arguments to them: either
68 "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\&.
71 systemd\-halt\&.service
72 (and the related units) should never be executed directly\&. Instead, trigger system shutdown with a command such as
79 \fBsystemd.special\fR(7),
81 \fBsystemd-suspend.service\fR(8)