I'm trying to setup the watchdog daemon to run on my Fedora 12 system.
I know exactly what I want it to do ... but I'm unsure as to exactly configure it. Mainly due to inexact documentation.
What I want to do is have my system reboot if a specific file doesn't change within a certain amount of time.
To do this I'll use the file = <filename>
and change = <mtime>
configuration options.
The problem is, I can't figure out what value I should use for mtime.
I want the system to restart if the specified file (a web server log file) hasn't changed in 10 minutes. What value would I use for mtime?
Thanks!
Which watchdog daemon? Have you tried setting
change = 600
? That's 10 minutes in seconds, which would be typical way of specifying this sort of thing. Looking at thewatchdog.conf(8)
man page it looks like everything else is specified in seconds.Easy to test, too -- don't update the file for ten minutes and see if your system reboots.
I found some information here : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/User_Guide/Parameters_for_Watchdogs_in_watchdog.conf.html
change :
watchdog interval is set via the interval parameter (default to 10 seconds)
interval :