The shutdown configuration in sysfs
![]()
The configured shutdown action for each shutdown trigger is stored in a sysfs attribute /sys/firmware/shutdown_actions/on_<trigger>.

The preferred way to read or change these settings is using the lsshut, chshut. For dump actions on Linux® in LPAR mode or Linux on z/VM®, the preferred way is the dumpconf command. Alternatively, you can read and write to the /sys/firmware/shutdown_actions/on_<trigger> attributes.
Examples
- This command reads the shutdown
configuration:
# lsshut Trigger Action ======================== Halt stop Power off stop Reboot reipl Restart kdump,stop Panic kdump,stop - This command reads the shutdown setting for the
poffshutdown trigger.# cat /sys/firmware/shutdown_actions/on_poff stop - This command changes the setting for the
rebootshutdown trigger toipl:
Alternatively, you can directly write the new setting to sysfs:# chshut reboot ipl# echo ipl > /sys/firmware/shutdown_actions/on_reboot - This command changes the setting for the
restartshutdown trigger toipl:# echo ipl > /sys/firmware/shutdown_actions/on_restart
Details for the ipl, reipl, dump,
and vmcmd shutdown actions are contained in the corresponding
subdirectories in /sys/firmware. For example, /sys/firmware/ipl contains
specifications for an IPL device and other IPL parameters.