Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

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 the watchdog.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.

share|improve this answer
    
I don't think 600 is 10 minutes ... I had that value set and the system ended up rebooting before it finished booting (yes, I had watchdog set to start at runlevel 3, I fixed that). Right now I have it set to 6000. –  david Dec 14 '10 at 21:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.