freebsd-skq/share
rse 56379f0e5b Fix system shutdown timeout handling by again supporting longer running
shutdown procedures (which have a duration of more than 120 seconds).

We have two user-space affecting shutdown timeouts: a "soft" one in
/etc/rc.shutdown and a "hard" one in init(8). The first one can be
configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults
to 30 seconds. The second one was originally (in 1998) intended to be
configured via sysctl(8) variable "kern.shutdown_timeout" and defaults
to 120 seconds.

Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999
(as it obviously is actually not used within the kernel itself) and
hence was intentionally but misleadingly removed in revision 1.107 from
init_main.c. Kernel sysctl(8) variables are certainly a wrong way to
control user-space processes in general, but in this particular case the
sysctl(8) variable should have remained as it supports init(8), which
isn't passed command line flags (which in turn could have been set via
/etc/rc.conf), etc.

As there is already a similar "kern.init_path" sysctl(8) variable which
directly affects init(8), resurrect the init(8) shutdown timeout under
sysctl(8) variable "kern.init_shutdown_timeout". But this time document
it as being intentionally unused within the kernel and used by init(8).
Also document it in the manpages init(8) and rc.conf(5).

Reviewed by: phk
MFC after: 2 weeks
2005-09-15 13:16:07 +00:00
..
colldef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
dict Add more technical terms to reduce false positives when spellchecking 2005-05-04 14:19:36 +00:00
doc The Berkeley pascal implementation for the VAX 11/780 has only 2005-08-01 12:14:53 +00:00
examples Update for RELENG_6. 2005-09-12 13:31:33 +00:00
info Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
isdn
man Fix system shutdown timeout handling by again supporting longer running 2005-09-15 13:16:07 +00:00
me
misc Regen: 2005-07-18 07:43:35 +00:00
mk Don't install ${LIB}_pic.a if NO_TOOLCHAIN 2005-08-05 09:55:04 +00:00
mklocale Comments correction 2005-04-21 09:15:19 +00:00
monetdef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
msgdef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
numericdef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
security Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
sendmail Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
skel Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
snmp Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
syscons Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
tabset
termcap Remove the map3270 file, tn3270 was retired long ago. 2005-08-05 09:52:25 +00:00
timedef New Ukrainian locale: uk_UA.CP1251. 2005-03-04 14:24:30 +00:00
zoneinfo Move "systemv" into OLDTIMEZONES clause; "backward" is a prerequisite. 2005-08-31 01:33:26 +00:00
Makefile Introduce NO_LOCALES build option. 2005-08-05 14:59:50 +00:00
Makefile.inc