1SHUTDOWN(8) shutdown SHUTDOWN(8)
2
3
4
6 shutdown - Halt, power-off or reboot the machine
7
9 shutdown [OPTIONS...] [TIME] [WALL...]
10
12 shutdown may be used to halt, power-off or reboot the machine.
13
14 The first argument may be a time string (which is usually "now").
15 Optionally, this may be followed by a wall message to be sent to all
16 logged-in users before going down.
17
18 The time string may either be in the format "hh:mm" for hour/minutes
19 specifying the time to execute the shutdown at, specified in 24h clock
20 format. Alternatively it may be in the syntax "+m" referring to the
21 specified number of minutes m from now. "now" is an alias for "+0",
22 i.e. for triggering an immediate shutdown. If no time argument is
23 specified, "+1" is implied.
24
25 Note that to specify a wall message you must specify a time argument,
26 too.
27
28 If the time argument is used, 5 minutes before the system goes down the
29 /run/nologin file is created to ensure that further logins shall not be
30 allowed.
31
33 The following options are understood:
34
35 --help
36 Print a short help text and exit.
37
38 -H, --halt
39 Halt the machine.
40
41 -P, --poweroff
42 Power-off the machine (the default).
43
44 -r, --reboot
45 Reboot the machine.
46
47 -h
48 Equivalent to --poweroff, unless --halt is specified.
49
50 -k
51 Do not halt, power-off, reboot, just write wall message.
52
53 --no-wall
54 Do not send wall message before halt, power-off, reboot.
55
56 -c
57 Cancel a pending shutdown. This may be used to cancel the effect of
58 an invocation of shutdown with a time argument that is not "+0" or
59 "now".
60
62 On success, 0 is returned, a non-zero failure code otherwise.
63
65 systemd(1), systemctl(1), halt(8), wall(1)
66
67
68
69systemd 246 SHUTDOWN(8)