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)
Mar 12 2024, 9:28 PM
Unknown Object (File)
Mar 12 2024, 5:53 PM
Unknown Object (File)
Mar 8 2024, 11:27 PM
Unknown Object (File)
Mar 8 2024, 11:26 PM
Unknown Object (File)
Jan 28 2024, 10:01 AM
Unknown Object (File)
Dec 31 2023, 6:29 PM
Unknown Object (File)
Dec 7 2023, 3:51 PM
Unknown Object (File)
Oct 31 2023, 7:49 PM
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).