freebsd-dev/sbin
Ralf S. Engelschall 724447ac41 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
..
adjkerntz Expand *n't contractions. 2005-02-13 22:25:33 +00:00
atacontrol Clarify how the 'channel' argument should look like and add an 2005-08-16 21:14:25 +00:00
atm Use the C99 syntax for designated initialisers. 2005-08-05 07:33:50 +00:00
badsect Expand *n't contractions. 2005-02-13 22:25:33 +00:00
bsdlabel Attempt to improve the logic for automatically sizing partitions 2005-08-14 22:46:50 +00:00
camcontrol Markup fixes. 2005-06-14 11:24:56 +00:00
ccdconfig Remove reference to raid(4), the RAIDframe manual page, which was 2005-08-20 09:10:31 +00:00
clri Give variable an initial value. Use errx() instead of fprintf(). 2005-05-29 16:07:10 +00:00
comcontrol Sort sections. 2005-01-18 10:09:38 +00:00
conscontrol Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
devd * Open permissions on /var/run/devd.pipe so that any user can read devd events 2005-07-13 17:28:11 +00:00
devfs Markup fixes. 2005-06-14 11:24:56 +00:00
dhclient Avoid updating resolv.conf when no changes have actually occured. 2005-09-08 22:49:17 +00:00
dmesg WARNS=6 cleanup: 2005-01-17 13:56:46 +00:00
dump Correct the description of the TAPE environment variable. 2005-07-31 13:56:19 +00:00
dumpfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
dumpon Sort sections. 2005-01-18 10:09:38 +00:00
fdisk Attempt gctl verb "write MBR" when updating. 2005-07-15 08:02:51 +00:00
fdisk_pc98 Merged from src/sbin/fdisk. 2005-07-15 15:31:19 +00:00
ffsinfo Grammatical improvement. 2005-04-08 10:32:22 +00:00
fsck Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
fsck_ffs Make background fsck based summary adjustments actually work by 2005-03-07 08:42:49 +00:00
fsck_msdosfs Prefer the __printflike() macro to GCC's __attribute__ stuff. 2005-03-09 10:10:51 +00:00
fsdb The libedit update made a const cast necessary. 2005-08-07 20:53:33 +00:00
fsirand Avoid casts as lvalues. 2004-07-28 05:59:22 +00:00
gbde gbde(8) is also rejndael user. 2005-03-11 22:07:04 +00:00
geom Even if there are no valid keys in metadata, but provider is attached 2005-09-10 07:43:03 +00:00
ggate Update manual page after ggate rewrite. 2005-07-29 11:22:13 +00:00
gpt Add support for setting GPT partition labels. The partitions to be 2005-09-01 02:49:20 +00:00
growfs Don't define FS_DEBUG by default, as this causes growfs to write debugging 2005-03-31 04:10:31 +00:00
gvinum Clean up. 2005-09-12 14:31:49 +00:00
idmapd Remove dead code. 2005-04-14 20:27:30 +00:00
ifconfig Document two missed if_bridge commands 'addr' and 'static'. 2005-08-14 03:28:08 +00:00
init Fix system shutdown timeout handling by again supporting longer running 2005-09-15 13:16:07 +00:00
ip6fw Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ipf Fix the contents of the underneath .depend files and "make checkdpadd". 2005-05-17 14:29:06 +00:00
ipfw * Add dynamic sysctl for net.inet6.ip6.fw. 2005-08-13 11:02:34 +00:00
kldconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
kldload Make it clear that the .ko extention of a module to be loaded 2005-08-27 22:25:51 +00:00
kldstat Synchronize program's usage() with manpage's SYNOPSIS. 2005-05-21 07:08:32 +00:00
kldunload - Correctly spell MOD_QUIESCE 2005-02-09 22:06:16 +00:00
ldconfig Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mca Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
md5 Belatedly update the md5(1) man page to reflect the addition of sha256. 2005-03-10 09:56:39 +00:00
mdconfig When using files as backing stores for devices, and the user has requested the 2005-08-30 16:45:32 +00:00
mdmfs Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mknod Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
mksnap_ffs Make sure we don't pass garbage to the kernel. 2004-12-08 11:54:50 +00:00
mount Remove Xref to mount_hpfs(8), it's not hooked up to the build. 2005-06-16 21:35:33 +00:00
mount_autofs spell "file system" correctly 2005-01-24 20:06:16 +00:00
mount_cd9660 Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_ext2fs Garbage collect useless variables. 2005-08-05 07:39:39 +00:00
mount_hpfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_msdosfs Xref msdosfs(5) 2005-09-14 16:36:19 +00:00
mount_nfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_nfs4 Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_ntfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_nullfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_reiserfs Tidy up the markup. 2005-06-24 10:57:53 +00:00
mount_std Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_udf Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_ufs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_umapfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_unionfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
natd WARNS=6 and gcc4 cleanup: 2005-05-02 10:13:38 +00:00
newfs Don't treat failure to find the operator GID as a fatal error; this 2005-08-14 17:07:04 +00:00
newfs_msdos Expand *n't contractions. 2005-02-13 22:25:33 +00:00
nfsiod When accessing the sysctl vfs.nfs.iodmax, don't report errors as being 2005-04-07 20:37:04 +00:00
nos-tun Expand *n't contractions. 2005-02-13 22:25:33 +00:00
pfctl Adapt Makefiles for pfctl(8) and authpf(8) to 3.7 sources. 2005-05-03 16:57:38 +00:00
pflogd Fixed misspelling of DPADD. 2004-10-24 14:25:53 +00:00
ping Implement a new feature for ping(8) - sweeping pings. In a sweeping 2005-08-15 14:15:37 +00:00
ping6 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
quotacheck Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
rcorder Deal with harmful leading whitespace. 2004-07-02 18:37:52 +00:00
reboot Add the ability to specify the boot2 serial console speed in 2005-08-18 00:42:45 +00:00
recoverdisk Extend utility to allow recovering single file from the deffective 2005-08-29 23:08:01 +00:00
restore Interpret correctly the glob(3) return value. 2005-07-21 16:12:35 +00:00
route - do DNS lookup for symbolic names specified for a destination 2005-05-23 14:12:32 +00:00
routed Use socklen_t where appropriate. 2005-08-05 09:58:49 +00:00
rtsol Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
savecore Don't consider being unable to open the bounds file worthy of printing 2005-09-13 19:15:28 +00:00
sconfig Fix typos. 2004-12-30 01:48:12 +00:00
setkey Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
shutdown Use new style declarations instead of K&R ones. 2005-01-25 08:40:51 +00:00
slattach Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
spppcontrol Expand contractions. 2005-02-13 23:45:54 +00:00
startslip - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
sunlabel Fix grammar error caused by my previous edit. 2005-03-30 18:54:41 +00:00
swapon Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sysctl - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
tunefs Expand *n't contractions. 2005-02-13 22:25:33 +00:00
umount Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
Makefile Build mount_reiserfs on every platforms, not only i386 and pc98. 2005-06-21 13:02:45 +00:00
Makefile.inc NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00