aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/watchdogd
Commit message (Collapse)AuthorAgeFilesLines
* Protect the watchdog daemon against swap OOM killer. This is similar toEd Maste2010-09-261-0/+3
| | | | | | | SVN r199804 which added protection to sshd, cron, syslogd, and inetd. Notes: svn path=/head/; revision=213181
* Staticify local variables.Xin LI2010-07-201-13/+11
| | | | | | | | | | | While I'm there also add a 'static' keyword for a function to make it consistent with prototype. Reviewed by: phk MFC after: 3 months Notes: svn path=/head/; revision=210300
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* ANSIfy almost all applications that use WARNS=6.Ed Schouten2009-12-291-2/+2
| | | | | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application. Notes: svn path=/head/; revision=201227
* Don't hide an error if the initial attempt to program a watchdog fromRuslan Ermilov2009-12-211-1/+1
| | | | | | | within watchdogd(8) fails. This is also consistent with watchdog(8). Notes: svn path=/head/; revision=200778
* Don't exit from watchdogd on receiving a signal if we cannot stop the watchdog.Nick Hibma2006-12-151-11/+18
| | | | | | | | That'll require -KILL. This avoids resetting your system on one of the watchdogs that you cannot disable. Notes: svn path=/head/; revision=165263
* Markup fixes.Ruslan Ermilov2006-09-292-2/+2
| | | | Notes: svn path=/head/; revision=162806
* Document that the default timeout is 16 secondsPoul-Henning Kamp2006-09-022-0/+2
| | | | Notes: svn path=/head/; revision=161862
* Fix usage().Poul-Henning Kamp2006-03-061-1/+1
| | | | | | | Submitted by: Adrian Steinmann <ast@marabu.ch> Notes: svn path=/head/; revision=156334
* Report any errors we might see when disabling the watchdog.Poul-Henning Kamp2005-09-301-2/+3
| | | | | | | | Complain about extra arguments so people don't get surprised if they type "watchdog 0" Notes: svn path=/head/; revision=150747
* Pidfiles should be created with permission preventing users from openingPawel Jakub Dawidek2005-09-161-1/+1
| | | | | | | | | | 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 Notes: svn path=/head/; revision=150214
* Use pidfile(3) in watchdogd(8).Pawel Jakub Dawidek2005-08-242-9/+18
| | | | Notes: svn path=/head/; revision=149434
* When disarming a watchdog by using an interval of WD_TO_NEVER a non-zeroMarius Strobl2005-03-191-1/+2
| | | | | | | | | | 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 Notes: svn path=/head/; revision=143831
* Sort sections.Ruslan Ermilov2005-01-182-10/+10
| | | | Notes: svn path=/head/; revision=140442
* Disable memory locking that could keep watchdogd from deadlocking itselfBrian Feldman2004-07-281-4/+0
| | | | | | | | | if the swap subsystem failed. Requested by: phk Notes: svn path=/head/; revision=132809
* Now that mlockall(2) is unbroken, use it to keep watchdogd(8) permanentlyBrian Feldman2004-07-231-0/+4
| | | | | | | out of swap. Notes: svn path=/head/; revision=132581
* mdoc(7) fixes.Ruslan Ermilov2004-07-071-0/+2
| | | | Notes: svn path=/head/; revision=131754
* Document -d flagPoul-Henning Kamp2004-06-141-0/+4
| | | | Notes: svn path=/head/; revision=130454
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-132-6/+6
| | | | Notes: svn path=/head/; revision=130420
* Bump the copyright year since I forgot last time.Sean Kelly2004-05-031-1/+1
| | | | Notes: svn path=/head/; revision=128898
* Update comments to reflect changes made by phk. Also no longer needSean Kelly2004-04-281-5/+2
| | | | | | | <sys/sysctl.h>. Notes: svn path=/head/; revision=128705
* mdoc(7) janitor:Simon L. B. Nielsen2004-04-251-2/+2
| | | | | | | | - Sort SEE ALSO by section number. - Remove redundant ','. Notes: svn path=/head/; revision=128644
* mdoc(7) janitor:Simon L. B. Nielsen2004-04-251-9/+9
| | | | | | | | | | | - Remove EOL whitespace. - Expand contracted words. - Correct usage of .Fl macro. - Use complete argument to -width. - Remove redundant ','. Notes: svn path=/head/; revision=128643
* Rename the WATCHDOG option to SW_WATCHDOG and make it use thePoul-Henning Kamp2004-02-284-56/+211
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=126383
* style.Makefile(5):Johan Karlsson2004-02-231-1/+1
| | | | | | | Use WARNS?= instead of WARNS=. Notes: svn path=/head/; revision=126178
* o style(9) fixesSean Kelly2003-07-032-17/+11
| | | | | | | | | | | | | | - 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) Notes: svn path=/head/; revision=117185
* Unbreak this for alpha and friends.Sean Kelly2003-06-261-2/+2
| | | | | | | Double pointy hat to me, or something. Notes: svn path=/head/; revision=116888
* o Fix typo.Maxim Konovalov2003-06-261-2/+2
| | | | | | | Submitted by: smkelly Notes: svn path=/head/; revision=116880
* - Add a software watchdog facility.Sean Kelly2003-06-263-0/+337
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) Notes: svn path=/head/; revision=116874