diff options
| author | Ralf S. Engelschall <rse@FreeBSD.org> | 2005-09-15 13:16:07 +0000 |
|---|---|---|
| committer | Ralf S. Engelschall <rse@FreeBSD.org> | 2005-09-15 13:16:07 +0000 |
| commit | 724447ac41a82a6c5a459edbf947c6489200897a (patch) | |
| tree | 8b597919ea5904ebe1451b1ea7d97643da09cba8 /sbin/init | |
| parent | f6a157fb884a28caa3f668a056d9412a3757b2be (diff) | |
Notes
Diffstat (limited to 'sbin/init')
| -rw-r--r-- | sbin/init/init.8 | 8 | ||||
| -rw-r--r-- | sbin/init/init.c | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sbin/init/init.8 b/sbin/init/init.8 index 6c393437bbe72..833e2f6d41f0a 100644 --- a/sbin/init/init.8 +++ b/sbin/init/init.8 @@ -31,7 +31,7 @@ .\" @(#)init.8 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd April 18, 1994 +.Dd September 15, 2005 .Dt INIT 8 .Os .Sh NAME @@ -270,6 +270,12 @@ This script can be used to cleanly terminate specific programs such as .Nm innd (the InterNetNews server). +If this script does not terminate within 120 seconds, +.Nm +will terminate it. The timeout can be configured via the +.Xr sysctl 8 +variable +.Va kern.init_shutdown_timeout . .Pp The role of .Nm diff --git a/sbin/init/init.c b/sbin/init/init.c index cfba31946ddc4..393955f0abde4 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -1520,7 +1520,7 @@ runshutdown(void) } len = sizeof(shutdowntimeout); - if (sysctlbyname("kern.shutdown_timeout", + if (sysctlbyname("kern.init_shutdown_timeout", &shutdowntimeout, &len, NULL, 0) == -1 || shutdowntimeout < 2) shutdowntimeout = DEATH_SCRIPT; |
