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
F133428805: D23129.id.diff
Sat, Oct 25, 5:47 PM
F133428804: D23129.id66880.diff
Sat, Oct 25, 5:47 PM
F133428798: D23129.id66604.diff
Sat, Oct 25, 5:47 PM
F133394536: D23129.diff
Sat, Oct 25, 11:20 AM
Unknown Object (File)
Thu, Oct 23, 6:02 AM
Unknown Object (File)
Fri, Oct 17, 2:26 AM
Unknown Object (File)
Tue, Oct 14, 12:11 PM
Unknown Object (File)
Mon, Oct 13, 4:58 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.