Page MenuHomeFreeBSD

Small tweak to the default behavior of shutdown -c
ClosedPublic

Authored by imp on Jan 10 2020, 9:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 11:43 PM
Unknown Object (File)
Fri, Mar 22, 9:48 PM
Unknown Object (File)
Mar 8 2024, 7:11 AM
Unknown Object (File)
Mar 8 2024, 7:11 AM
Unknown Object (File)
Mar 8 2024, 4:07 AM
Unknown Object (File)
Jan 12 2024, 6:42 AM
Unknown Object (File)
Jan 4 2024, 5:37 PM
Unknown Object (File)
Jan 4 2024, 5:24 PM
Subscribers

Details

Summary

'shutdown -c' is supposed to power cycle the system rather than doing a normal
reboot. However, when that fails, it halts the system. This is not quite right
since the intent isn't to halt the system but to restart. Make the default init
behavior be to restart the system. The halt(8) interface can be used if you'd
like to powercycle or halt.

MFC After: 1 week

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28596
Build 26633: arc lint + arc unit

Event Timeline

rpokala added inline comments.
sbin/shutdown/shutdown.8
66

rebooted.

imp marked an inline comment as done.Jan 10 2020, 9:53 PM
imp added inline comments.
sbin/shutdown/shutdown.8
66

thanks fixed. Won't repost unless I have code changes. Will also bump .Dd

This revision was not accepted when it landed; it landed in state Needs Review.Jan 17 2020, 1:21 AM
This revision was automatically updated to reflect the committed changes.
imp marked an inline comment as done.