From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 22:12:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 845C1106576F for ; Tue, 24 Feb 2009 22:12:27 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 464E68FC17 for ; Tue, 24 Feb 2009 22:12:27 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (66.10.87-79.rev.gaoland.net [79.87.10.66]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 43299633301; Tue, 24 Feb 2009 23:12:26 +0100 (CET) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 6C7EED1DA; Tue, 24 Feb 2009 23:12:27 +0100 (CET) Date: Tue, 24 Feb 2009 23:12:26 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: Peter Steele Message-ID: <20090224231226.5f815ce2@baby-jane.lamaiziere.net> In-Reply-To: <7836999.881235509269433.JavaMail.HALO$@halo> References: <32561700.861235508797247.JavaMail.HALO$@halo> <7836999.881235509269433.JavaMail.HALO$@halo> Organization: /dave/nulle X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: What is correct way to enable watchdog? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2009 22:12:27 -0000 Le Tue, 24 Feb 2009 13:01:13 -0800 (PST), Peter Steele : > > If -e cmd is not specified, the daemon will > > perform a trivial file system check instead. > > So -e has to be provided for the system to reboot? No, if -e is provided, watchdogd execute the command 'cmd', if the command succeed it resets and restarts the watchdog. Without -e, watchdogd tests a stat("/etc",xxx) syscall. See http://ezine.daemonnews.org/200406/watchdog.html > >This smells more like a bug in watchdog. If that's the case, the > >crash dumps should point right at it, at which point I'd take it to > >freebsd-stable or -current, whichever applies to the OS version. > > Okay, we'll enable dumpdev/dumpdir and see what we get. If the watchdog is a hardware watchdog, you will not get any log or crash dump, just a hard reset. Which watchdog are you using? Regards.