The powertool program
powertool instructs the Linux Kernel to either halt, poweroff or reboot. This initiates hardware shutdown, not an orderly shutdown of the system. It should be the last program called during an orderly shutdown sequence.
Interface
powertool -h | -p | -r
powertool instructs the Linux Kernel according to the options given. The op's listed below are documented here.
Options
-
-h: Instruct the Linux Kernel to halt, corresponding to the opRB_HALT_SYSTEM. -
-p: Instruct the Linux Kernel to poweroff, corresponding to the opRB_POWER_OFF. -
-r: Instruct the Linux Kernel to reboot, corresponding to the opRB_AUTOBOOT.
Exit codes
- 100: wrong usage.
- 111: system call failed.
