2 .TH "SYSTEMD\-HALT\&.SERVICE" "8" "" "systemd 208" "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\&. Similar,
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 Immediately before executing the actual system halt/poweroff/reboot/kexec
59 will run all executables in
60 /usr/lib/systemd/system\-shutdown/
61 and pass one arguments to them: either
66 "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\&.
69 systemd\-halt\&.service
70 (and the related units) should never be executed directly\&. Instead, trigger system shutdown with a command such as
77 \fBsystemd.special\fR(7),
79 \fBsystemd-suspend.service\fR(8)