Patch for rc.d/watchdogd
Simon L. Nielsen
simon at FreeBSD.org
Sun Apr 25 11:12:09 PDT 2004
Hello
The current watchdogd rc.d script doesn't work with hardware watchdogs
supported by watchdog(4)/watchdogd(8) since the sysctl debug.watchdog
doesn't exist for the hardware devices.
The attached patch simply removes the check for the sysctl since the
generic watchdog code is always compiled in.
Could someone commit this or approve it so I can commit it myself?
--
Simon L. Nielsen
FreeBSD Documentation Team
-------------- next part --------------
Index: watchdogd
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/watchdogd,v
retrieving revision 1.2
diff -u -d -r1.2 watchdogd
--- watchdogd 8 Mar 2004 12:25:05 -0000 1.2
+++ watchdogd 25 Apr 2004 17:56:57 -0000
@@ -36,16 +36,7 @@
name="watchdogd"
rcvar="`set_rcvar`"
command="/usr/sbin/${name}"
-start_precmd="watchdogd_precmd"
pidfile="/var/run/${name}.pid"
-watchdogd_precmd()
-{
- if ! sysctl debug.watchdog >/dev/null 2>&1; then
- err 1 "Your kernel doesn't have watchdog support."
- fi
- return 0
-}
-
load_rc_config $name
run_rc_command "$1"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20040425/8fe7f6c2/attachment.bin
More information about the freebsd-rc
mailing list