Page MenuHomeFreeBSD

Small tweak to the default behavior of shutdown -c
ClosedPublic

Authored by imp on Jan 10 2020, 9:33 PM.

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

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

imp created this revision.Jan 10 2020, 9:33 PM
emaste added a subscriber: emaste.Jan 10 2020, 9:34 PM
rpokala added inline comments.
sbin/shutdown/shutdown.8
66 ↗(On Diff #66604)

rebooted.

imp marked an inline comment as done.Jan 10 2020, 9:53 PM
imp added inline comments.
sbin/shutdown/shutdown.8
66 ↗(On Diff #66604)

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.