Check Program Time Out |
|||||
WATCHDOG FILE SYSTEM USING LINUX Here is watchfile.ini
file format: |
|||||
|
|||||
INSTALLATION SETUP | |||||
PREPROCESSING
Uncompress the tar file, and enter the directory that have a watchfile.ini # First, save the original "watchfile.ini" as a backup file. 1. cp watchfile.ini watchfile.ini.backup # Then use editor(vi,joe....) to add the filename that you want to monitor. # The watchfile.ini format is in the Top of this article. 2. vi watchfile.ini or joe watchfile.ini # Run "install" 3. . ./install # Now you may type "./watchfile &" to run, or type "make" to rebuild again. 4. . ./watchfile & or make # [Optional] Set this program to run automatically when everytime # the system is rebooting. 5. cd /etc/rc.d 6. vi rc.local # If the path of the watchdog driver is "/root/watchdog", then # at the bottom of "rc.local", add each line below and save it. # The first five lines are to set up the driver, and the last line is running # the program. /sbin/insmod -f /root/watchdog/dwatchdog.o rm -f /dev/dwatchdog mknod /dev/dwatchdog c 154 154 chgrp root /dev/dwatchdog chmod 664 /dev/dwatchdog /usr/lib/watchfile & |
|||||
NEXT | |||||