Shutdown actions
Several triggers can cause Linux® to shut down. For each shutdown trigger, you can configure a specific shutdown action to be taken as a response.
Trigger | Command or condition | Default shutdown action |
---|---|---|
halt | Linux shutdown -H command | stop |
poff | Linux poweroff or shutdown -P command | stop |
reboot | Linux reboot or shutdown -r command | reipl |
restart | Depending on the hyperisor environment:
|
stop |
panic | Linux kernel panic | stop |
The available shutdown actions are summarized in Table 2.
Action | Explanation | See also |
---|---|---|
stop | For panic or restart , enters a disabled wait
state. For all other shutdown triggers, stops all CPUs.For Linux on KVM, frees the resources that were used by the Linux instance. Depending on your virtual server configuration, the memory might be preserved. |
n/a |
ipl | Performs an IPL according to the specifications in /sys/firmware/ipl. | Displaying current IPL parameters |
reipl | Performs an IPL according to the specifications in /sys/firmware/reipl. | Rebooting from an alternative source |
dump | For Linux in LPAR mode and Linux on z/VM, creates a dump according to the specifications in /sys/firmware/dump. | Using the Dump Tools on Red Hat Enterprise Linux 8.6, SC34-7718 |
dump_reipl | For Linux in LPAR mode and Linux on z/VM, performs the dump action followed by the reipl
action. |
Using the Dump Tools on Red Hat Enterprise Linux 8.6, SC34-7718 |
vmcmd | For Linux on z/VM, issues one or more z/VM CP commands according to the specifications in /sys/firmware/vmcmd. | Configuring z/VM CP commands as a shutdown action |
Use lsshut to find out which shutdown action is configured for each shutdown trigger.
Use the applicable command to configure the shutdown action for a shutdown trigger:
- For
halt
,power off
, andreboot
use chshut. - For
restart
andpanic
on Linux in LPAR mode or Linux on z/VM, use dumpconf, see Using the Dump Tools on Red Hat Enterprise Linux 8.6, SC34-7718
kdump for restart and panic
If kdump is set up for a Linux instance, kdump is started to create a dump, regardless of the shutdown actions that are specified forrestart
and panic
.
With kdump, these settings act as a backup that is used only if kdump fails.Note: kdump is not a shutdown action that you can set as a sysfs attribute value for a
shutdown trigger. See Using the Dump Tools on Red Hat Enterprise Linux
8.6, SC34-7718 about how to set up
kdump.