Skip to content

Commit 3a4838c

Browse files
mady20Managor
andauthored
systemctl-halt: add page (tldr-pages#18365)
* systemctl-halt: add page * Update pages/linux/systemctl-halt.md Co-authored-by: Managor <[email protected]> --------- Co-authored-by: Managor <[email protected]>
1 parent d420b16 commit 3a4838c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pages/linux/systemctl-halt.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# systemctl-halt
2+
3+
> Shut down and halt the system (stop the OS kernel but keep hardware powered on).
4+
> See also: `halt`.
5+
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#halt>.
6+
7+
- Halt the system:
8+
9+
`systemctl halt`
10+
11+
- Halt the system immediately without asking services to stop gracefully:
12+
13+
`systemctl halt --force`
14+
15+
- Halt the system immediately without sending notifications to logged-in users:
16+
17+
`systemctl halt --force --no-wall`
18+
19+
- Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss):
20+
21+
`systemctl halt --force --force`
22+
23+
- Schedule a halt at a specific time (e.g., 23:00):
24+
25+
`systemctl halt --when 23:00`
26+
27+
- Schedule a halt after a certain duration (e.g., 2 hours):
28+
29+
`systemctl halt --when +2h`
30+
31+
- Cancel a scheduled halt:
32+
33+
`systemctl halt --when cancel`

0 commit comments

Comments
 (0)