summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-02-10 06:53:48 +0000
committerdelphij <delphij@FreeBSD.org>2017-02-10 06:53:48 +0000
commitb3a273f11b9829eca57412e90421eee4b4d2a018 (patch)
tree8756ae8c6aebe283cffb39eecb494de40063c87d /usr.sbin
parent3ce81f6a4bc9f6a3092f2bce4b4ed7be4fbcf598 (diff)
downloadFreeBSD-src-b3a273f11b9829eca57412e90421eee4b4d2a018.zip
FreeBSD-src-b3a273f11b9829eca57412e90421eee4b4d2a018.tar.gz
MFC r274583: Default to use 10 seconds as nap interval instead of 1.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/watchdogd/watchdogd.82
-rw-r--r--usr.sbin/watchdogd/watchdogd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.8 b/usr.sbin/watchdogd/watchdogd.8
index 5f4b68a..cdf5778 100644
--- a/usr.sbin/watchdogd/watchdogd.8
+++ b/usr.sbin/watchdogd/watchdogd.8
@@ -80,7 +80,7 @@ reboot if there are problems with the script.
The
.Fl s Ar sleep
argument can be used to control the sleep period between each execution
-of the check and defaults to one second.
+of the check and defaults to 10 seconds.
.Pp
The
.Fl t Ar timeout
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index 3bad9ac..1271bbf 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -80,7 +80,7 @@ static u_int timeout = WD_TO_128SEC;
static u_int exit_timeout = WD_TO_NEVER;
static u_int pretimeout = 0;
static u_int timeout_sec;
-static u_int nap = 1;
+static u_int nap = 10;
static int passive = 0;
static int is_daemon = 0;
static int is_dry_run = 0; /* do not arm the watchdog, only
OpenPOWER on IntegriCloud