Date: Sat, 1 Jul 1995 16:42:45 -0400 From: dennis@et.htp.com (dennis) To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" <ache@astral.msk.su> Cc: freebsd-hackers@freebsd.org Subject: Re: Watchdog/Hard Reboot for BSD UN*X Message-ID: <199507012042.QAA16995@mail.htp.com>
next in thread | raw e-mail | index | archive | help
>Andrey A. Chernov writes.... >>The ET/WDT is an ISA card with a hardware timer that wires directly into >>the reset switch on the pc and can reset the PC just as if you pressed the >>reset button. The watchdog timer can detect system hangs in seconds instead >>of hours. > >The question is: what happens for soft reboot? >I.e. if program just use reboot() syscall? >Bad assumption is: system reboots, watchdog don't receive his >tics anymore and goes to reboot timeout, system start to load, >and in the middle of system loading watchdog issue reset, >so system boots again... >-- some rather simple remedies off the top of my head.... 1) redefine the reboot function to be a halt (in which case the timer will reboot the system once it is halted) 2) Set the timer for a value that is larger than the amount of time it takes to reboot, and then disable/re-enable the timer from your startup script. db
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507012042.QAA16995>