Commit Graph

24 Commits

Author SHA1 Message Date
n_hibma
ce738c66fb Don't exit from watchdogd on receiving a signal if we cannot stop the watchdog.
That'll require -KILL. This avoids resetting your system on one of the
watchdogs that you cannot disable.
2006-12-15 22:47:36 +00:00
ru
8b8a0b4d6b Markup fixes. 2006-09-29 17:57:04 +00:00
phk
06d938108f Document that the default timeout is 16 seconds 2006-09-02 09:11:58 +00:00
phk
0630b94785 Fix usage().
Submitted by:	Adrian Steinmann <ast@marabu.ch>
2006-03-06 07:42:52 +00:00
phk
33c9e87c89 Report any errors we might see when disabling the watchdog.
Complain about extra arguments so people don't get surprised
if they type "watchdog 0"
2005-09-30 08:30:20 +00:00
pjd
5feb2d0d37 Pidfiles should be created with permission preventing users from opening
them for reading. When user can open file for reading, he can also
flock(2) it, which can lead to confusions.

Pointed out by:	green
2005-09-16 11:24:28 +00:00
pjd
17f034246c Use pidfile(3) in watchdogd(8). 2005-08-24 19:28:33 +00:00
marius
c053ae6d4f When disarming a watchdog by using an interval of WD_TO_NEVER a non-zero
return value of the ioctl doesn't indicate that the command has failed
so don't let watchdog(8) return an error in this case.

MFC after:	3 days
2005-03-19 01:46:37 +00:00
ru
9a0f1e9891 Sort sections. 2005-01-18 20:02:45 +00:00
green
3e0df3db57 Disable memory locking that could keep watchdogd from deadlocking itself
if the swap subsystem failed.

Requested by:	phk
2004-07-28 22:13:04 +00:00
green
134893e9ac Now that mlockall(2) is unbroken, use it to keep watchdogd(8) permanently
out of swap.
2004-07-23 15:24:57 +00:00
ru
6e28d19886 mdoc(7) fixes. 2004-07-07 19:57:16 +00:00
phk
3e3c8d1af3 Document -d flag 2004-06-14 07:27:27 +00:00
ru
f0f9daab94 Assorted markup, grammar, and spelling fixes. 2004-06-13 18:03:44 +00:00
smkelly
4f96babdb8 Bump the copyright year since I forgot last time. 2004-05-03 21:41:02 +00:00
smkelly
5ec947e5f5 Update comments to reflect changes made by phk. Also no longer need
<sys/sysctl.h>.
2004-04-28 07:35:03 +00:00
simon
8bb50d23d0 mdoc(7) janitor:
- Sort SEE ALSO by section number.
- Remove redundant ','.
2004-04-25 14:13:48 +00:00
simon
400a74491a mdoc(7) janitor:
- Remove EOL whitespace.
- Expand contracted words.
- Correct usage of .Fl macro.
- Use complete argument to -width.
- Remove redundant ','.
2004-04-25 14:09:38 +00:00
phk
743a7c42e2 Rename the WATCHDOG option to SW_WATCHDOG and make it use the
generic watchdoc(9) interface.

Make watchdogd(8) perform as watchdog(8) as well, and make it
possible to specify a check command to run, timeout and sleep
periods.

Update watchdog(4) to talk about the generic interface and add
new watchdog(8) page.
2004-02-28 20:56:35 +00:00
johan
1a1602ce7d style.Makefile(5):
Use WARNS?= instead of WARNS=.
2004-02-23 20:25:27 +00:00
smkelly
69ffecbab0 o style(9) fixes
- Reordered #includes
  - Only include <sys/types.h>, not it and <sys/cdefs.h>
o style.Makefile(5) fixes
  - No SRCS= line when only one src file with same name as program
o Use warn()/errx() instead of fprintf()
  - Integrated patch from Philippe Charnier <charnier@xp11.frmug.org>

Approved by:	jeff (mentor)
2003-07-03 03:37:04 +00:00
smkelly
c6daedee3d Unbreak this for alpha and friends.
Double pointy hat to me, or something.
2003-06-26 18:36:57 +00:00
maxim
e1eb622c05 o Fix typo.
Submitted by:	smkelly
2003-06-26 11:24:10 +00:00
smkelly
3d5e7b3e42 - Add a software watchdog facility.
This commit has two pieces. One half is the watchdog kernel code which lives
primarily in hardclock() in sys/kern/kern_clock.c. The other half is a userland
daemon which, when run, will keep the watchdog from firing while the userland
is intact and functioning.

Approved by:	jeff (mentor)
2003-06-26 09:50:52 +00:00