Skip to content

Commit c1d26f3

Browse files
committed
doc: improve shutdown hook documentation for kexec
The argument for kexec will be "reboot" just as for a regular reboot; document this.
1 parent 1c416e7 commit c1d26f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/manpages/shutdown.8.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ Only the first existing executable file from the above list will be executed. Th
9696
is intended to allow customisation by the system administrator (and should usually be a script
9797
which on completion executes the 2nd shutdown hook, if present).
9898
The 2nd location is intended for distribution control.
99-
The script will be passed one argument, either "poweroff", "halt", or "reboot" depending on the shutdown type.
99+
The script will be passed one argument, either "poweroff", "halt", or "reboot" depending on the shutdown type
100+
(for kexec, if supported, the argument will be "reboot", as for a regular reboot).
100101
.LP
101102
If found and successfully executed, the shutdown hook should perform any special shutdown actions
102103
that depend on all processes being terminated.

0 commit comments

Comments
 (0)