freebsd-skq/share/man/man8
avg e96b4170d0 add ability to set watchdog timeout for a shutdown
This change allows to specify a watchdog(9) timeout for a system
shutdown.  The timeout is activated when the watchdogd daemon is
stopped.  The idea is to a prevent any indefinite hang during late
stages of the shutdown.  The feature is implemented in rc.d/watchdogd,
it builds upon watchdogd -x option.

Note that the shutdown timeout is not actiavted when the watchdogd
service is individually stopped by an operator.  It is also not
activated for the 'shutdown' to the single-user mode.  In those cases it
is assumed that the operator knows what they are doing and they have
means to recover the system should it hang.

Significant subchanges and implementation details:
- the argument to rc.shutdown, completely unused before, is assigned to
  rc_shutdown variable that can be inspected by rc scripts
- init(8) passes "single" or "reboot" as the argument, this is not
  changed
- the argument is not mandatory and if it is not set then rc_shutdown is
  set to "unspecified"
- however, the default jail management scripts and jail configuration
  examples have been updated to pass "jail" to rc.shutdown, just in case
- the new timeout can be set via watchdogd_shutdown_timeout rc option
- for consistency, the regular timeout can now be set via
  watchdogd_timeout rc option
- watchdogd_shutdown_timeout and watchdogd_timeout override timeout
  specifications in watchdogd_flags
- existing configurations, where the new rc options are not set, should
  keep working as before

I am not particularly wed to any of the implementation specifics.
I am open to changing or removing any of them as long as the provided
functionality is the same (or very close) to the proposed one.
For example, I think it can be implemented without using watchdogd -x,
by means of watchdog(1) alone.  In that case there would be a small
window between stopping watchdogd and running watchdog, but I think that
that is acceptable.

Reviewed by:	bcr (man page changes)
MFC after:	5 weeks
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D21221
2019-10-03 11:23:10 +00:00
..
beinstall.8 Create a manual page for beinstall.sh. 2018-08-20 11:05:36 +00:00
crash.8 Update several more URLs 2017-10-29 08:17:03 +00:00
diskless.8 Correct directions for building pxeboot. One needs to cd to src/stand, 2018-09-10 15:16:33 +00:00
intro.8
Makefile pkgbase: move man pages from runtime-manual to runtime 2019-07-19 15:12:20 +00:00
Makefile.depend
nanobsd.8 Last few instances of "sentence not on new line". 2016-06-08 09:36:07 +00:00
picobsd.8 Remove RELEASE_CRUNCH in example 2019-07-19 20:04:26 +00:00
rc.8 add ability to set watchdog timeout for a shutdown 2019-10-03 11:23:10 +00:00
rc.sendmail.8
rc.subr.8 rc: Honor ${name}_env when a custom *_cmd is defined (e.g., start_cmd) 2019-09-05 14:52:22 +00:00
rescue.8
uefi.8 Rework UEFI ESP generation 2018-12-20 19:39:37 +00:00
yp.8