Page MenuHomeFreeBSD

shutdown: Support time units as in 'shutdown -r +5sec'
ClosedPublic

Authored by gleb on Dec 6 2014, 7:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 3:37 PM
Unknown Object (File)
Thu, Nov 7, 2:30 PM
Unknown Object (File)
Thu, Nov 7, 2:29 PM
Unknown Object (File)
Oct 7 2024, 8:41 AM
Unknown Object (File)
Oct 4 2024, 7:34 AM
Unknown Object (File)
Oct 3 2024, 6:09 PM
Unknown Object (File)
Oct 3 2024, 8:43 AM
Unknown Object (File)
Oct 3 2024, 5:31 AM
Subscribers

Details

Summary

Teach /sbin/shutdown about intervals less than a minute, while there add support for other time units: minutes and hours.

Rationale: let application initiate system shutdown "soon enough" while trying to exit gracefully. shutdown within short interval is of higher importance than graceful application exit.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

gleb retitled this revision from to shutdown: Support time units as in 'shutdown -r +5sec'.
gleb updated this object.
gleb edited the test plan for this revision. (Show Details)
gleb set the repository for this revision to rS FreeBSD src repository - subversion.

Remember to update the .Dd when the man page is committed.

sbin/shutdown/shutdown.8
122 ↗(On Diff #2657)

s/appending/appending the/

jhb added a reviewer: jhb.
jhb added a subscriber: jhb.

Looks fine to me with Warren's manpage suggestion.

This revision is now accepted and ready to land.Dec 15 2014, 5:00 PM
roberto added a reviewer: roberto.
roberto added a subscriber: roberto.

Looks fine to me. Thanks.

gleb updated this revision to Diff 2760.

Closed by commit rS275818 (authored by @gleb).