system/watchdog: Minor fixes; thanks to Chris Abela.

This commit is contained in:
Menno Duursma 2010-10-20 02:24:38 -05:00 committed by Erik Hanson
parent 227ba3164f
commit e58328b7aa
3 changed files with 10 additions and 3 deletions

View file

@ -1,10 +1,10 @@
For this to work, a kernel driver for the aformentioned device needs For this to work, a kernel driver for the aformentioned device needs
to be loaded. The module may be found in: to be loaded. The module may be found in:
/lib/modules/`uname -r`/kernel/drivers/char/watchdog /lib/modules/`uname -r`/kernel/drivers/watchdog
It can be configured to try and fix things (such as networking) It can be configured to try and fix things (such as networking)
before triggering a reboot. As 'repair.sh' may be able to do. before triggering a reboot. As 'repair.sh' may be able to do.
See the examples included in /usr/doc/watchdog-5.6/examples See the examples included in /usr/doc/watchdog-*/examples
This package also contains the 'wd_keepalive' program by Marcel Jansen This package also contains the 'wd_keepalive' program by Marcel Jansen
which "can be run during critical periods when the normal watcdog which "can be run during critical periods when the normal watcdog
@ -13,6 +13,10 @@ it will do no checks but will keep writing to the device.
To enable the watchdog: make sure a kernel module gets loaded for it To enable the watchdog: make sure a kernel module gets loaded for it
(at boot) such as the 'softdog' or an actual hardware driver... (at boot) such as the 'softdog' or an actual hardware driver...
If you don't understand what this is all about, maybe watch:
http://www.youtube.com/watch?v=GV_1p3n1fkU
Then add the following to rc.local: Then add the following to rc.local:
# Start the watchdog timer deamon # Start the watchdog timer deamon

View file

@ -74,6 +74,9 @@ mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new
# Add init script too # Add init script too
install -D -m755 $CWD/config/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new install -D -m755 $CWD/config/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new
# Install the repair script
install -D -m755 examples/repair.sh $PKG/usr/sbin/repair
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Menno Duursma" MAINTAINER="Menno Duursma"
EMAIL="druiloor@zonnet.nl" EMAIL="druiloor@zonnet.nl"
APPROVED="dsomero" APPROVED="Erik Hanson"