NSLU2-Linux
view · edit · print · history

OpenSlug.InstallWatchdog History

Hide minor edits - Show changes to markup

November 03, 2007, at 10:37 AM by mhornsby --
Added line 27:
  1. ! /bin/sh
November 03, 2007, at 10:35 AM by mhornsby --
Changed lines 24-26 from:

@@

to:

(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:)

 [=
Changed lines 50-52 from:

@@

to:

=] (:tableend:)

November 03, 2007, at 10:33 AM by mhornsby --
Changed lines 48-50 from:

l@@

to:

@@

November 03, 2007, at 10:27 AM by mhornsby --
Changed lines 22-26 from:

You can put it in a crontab as follows:

0 0 * * * root /usr/sbin/WatchDog? &>/dev/null

to:

Here's a startup script for /etc/init.d

@@

  1. Copy it to /etc/init.d/watchdog and type
  2. > update-rc.d watchdog defaults 99

watchdog=/sbin/watchdog

test -x "$watchdog" || exit 0

case "$1" in

  start)
    echo  "Starting Watchdog"
    $watchdog /dev/watchdog
    ;;
  stop)
    ;;
  reload|force-reload)
    ;;
  restart)
    ;;
  *)
    echo "Usage: /etc/init.d/watchdog {start|stop|reload|restart|force-reload}"
    exit 1

esac l@@

October 31, 2007, at 11:00 AM by mhornsby --
Changed lines 12-14 from:

Busybox supports a Watchdog command with the following Syntax. I had to recompile the standard busybox that comes with OpenSlug to add the watchdog command.

to:

Busybox supports a Watchdog command with the following Syntax. I had to recompile the standard busybox that comes with OpenSlug to add the watchdog command. You can check which commands you busybox supports with busybox --help

October 31, 2007, at 10:58 AM by mhornsby --
Changed lines 18-23 from:

-t Timer period in seconds - default is 30 -F Stay in the foreground and don't fork

to:
-t Timer period in seconds - default is 30
-F Stay in the foreground and don't fork"
October 31, 2007, at 10:56 AM by mhornsby --
Changed lines 5-9 from:

ipkg install kernel-module-ixp4xx-wdt insmod /lib/modules/2.6.16/kernel/drivers/char/watchdog/ixp4xx_wdt.ko echo ixp4xx_wdt >> /etc/modutils/ixp4xx_wdt update-modules

to:
ipkg install kernel-module-ixp4xx-wdt
insmod /lib/modules/2.6.16/kernel/drivers/char/watchdog/ixp4xx_wdt.ko
echo ixp4xx_wdt >> /etc/modutils/ixp4xx_wdt
update-modules

You should now have a device /dev/watchdog

Added line 16:
Added line 19:
Added line 23:
October 31, 2007, at 10:54 AM by mhornsby -- Initial Version
Added lines 1-23:

Openslug can support a watchdog timer to reboot your slug

Here is what I did to get it working on OpenSlug 3.1

ipkg install kernel-module-ixp4xx-wdt insmod /lib/modules/2.6.16/kernel/drivers/char/watchdog/ixp4xx_wdt.ko echo ixp4xx_wdt >> /etc/modutils/ixp4xx_wdt update-modules

Busybox supports a Watchdog command with the following Syntax. I had to recompile the standard busybox that comes with OpenSlug to add the watchdog command.

watchdog [-t <seconds>] [-F] DEV Periodically write to watchdog device DEV . Options:

-t Timer period in seconds - default is 30 -F Stay in the foreground and don't fork

You can put it in a crontab as follows:

0 0 * * * root /usr/sbin/WatchDog? &>/dev/null

view · edit · print · history · Last edited by mhornsby.
Originally by mhornsby.
Page last modified on November 03, 2007, at 10:37 AM