0

From what I can find online sudo reboot and ipmitool power reset are warm reboot commands

Are there actually any differences between these two or are they just the same thing with a different method to execute?

I could guess they are different due to the syntax but under the hood is it the same signals to the motherboard, just from a different input OR'ed together?

1 Answer 1

1

sudo reboot normally runs the shutdown -r command, which closes running processes. ipmitool power reset triggers the same hardware reset mechanism but without calling shutdown.

Note that shutdown and reboot are links to the same file. In the olden days, a script that did the orderly shutdown. Now they are both links to systemctl.

4
  • Just so I understand correctly, if a process was interrupted with sudo reboot it will return an error code most likely but if a process was interrupted with ipmitool power reset the process will hang? This would explain the behavior I am seeing
    – Susanoo116
    Commented Apr 8, 2020 at 11:19
  • shutdown sends a SIGTERM to all processes, giving them a chance to save data and exit gracefully. If the power reset happens, then the process is immediately killed with no chance to save.
    – stark
    Commented Apr 8, 2020 at 11:24
  • Okay I think I get it now, thanks for your speedy replies!
    – Susanoo116
    Commented Apr 8, 2020 at 11:26
  • Are you aware of any other signals that do get asserted when ipmitool power reset is executed, such as SIGINT, SIGKILL or SIGQUIT?
    – Susanoo116
    Commented Apr 8, 2020 at 15:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .