summaryrefslogtreecommitdiffstats
path: root/sbin/init
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.88
-rw-r--r--sbin/init/init.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/sbin/init/init.8 b/sbin/init/init.8
index 6c39343..833e2f6 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 cfba319..393955f 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;
OpenPOWER on IntegriCloud