rse 6635211f80 MFC to RELENG_6:
| 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
|
| Revision  Changes    Path
| 1.48      +7 -1      src/sbin/init/init.8
| 1.61      +1 -1      src/sbin/init/init.c
| 1.264     +16 -1     src/share/man/man5/rc.conf.5
| 1.257     +11 -0     src/sys/kern/init_main.c

Approved by: re (scottl)
2005-10-04 17:29:00 +00:00
..
2005-02-13 22:25:33 +00:00
2005-08-19 15:54:42 +00:00
2005-05-02 10:31:27 +00:00
2005-02-13 22:25:33 +00:00
2005-09-20 00:34:54 +00:00
2005-06-14 11:24:56 +00:00
2005-01-18 10:09:38 +00:00
2005-09-19 21:50:31 +00:00
2005-06-14 11:24:56 +00:00
2005-01-17 13:56:46 +00:00
2005-08-07 18:49:50 +00:00
2005-01-18 10:09:38 +00:00
2005-04-08 10:32:22 +00:00
2004-07-28 05:59:22 +00:00
2005-03-11 22:07:04 +00:00
2005-08-04 18:05:33 +00:00
2005-09-06 23:59:01 +00:00
2005-04-14 20:27:30 +00:00
2005-10-04 17:29:00 +00:00
2005-02-13 22:25:33 +00:00
2005-08-20 08:36:57 +00:00
2005-08-31 13:57:37 +00:00
2005-02-09 22:06:16 +00:00
2005-09-09 21:39:47 +00:00
2005-06-24 10:57:53 +00:00
2005-05-02 10:13:38 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00
2004-10-24 14:25:53 +00:00
2005-08-19 09:29:25 +00:00
2004-12-30 01:48:12 +00:00
2005-02-13 23:45:54 +00:00
2005-07-17 15:03:36 +00:00
2005-02-13 22:25:33 +00:00
2004-12-21 09:59:45 +00:00