Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created May 10, 2011 17:50
Show Gist options
  • Select an option

  • Save fapestniegd/964990 to your computer and use it in GitHub Desktop.

Select an option

Save fapestniegd/964990 to your computer and use it in GitHub Desktop.
modprobe geodewdt timeout=60 nowayout=1
apt-get install -y watchdog
cat<<EOF > /etc/default/watchdog
run_watchdog=1
watchdog_module="geodewdt"
EOF
cat<<EOWDC > /etc/watchdog.conf
#ping = 172.31.14.1
#ping = 172.26.1.255
#interface = eth0
#file = /var/log/messages
#change = 1407
#max-load-1 = 24
#max-load-5 = 18
#max-load-15 = 12
#min-memory = 1
#repair-binary = /usr/sbin/repair
#repair-timeout =
#test-binary =
#test-timeout =
watchdog-device = /dev/watchdog
#temperature-device =
#max-temperature = 120
#admin = root
#interval = 1
#logtick = 1
#log-dir = /var/log/watchdog
realtime = yes
priority = 1
#pidfile = /var/run/syslogd.pid
EOWDC
/etc/init.d/watchdog start
kill $(ps -ef |grep "/usr/sbin/watchd[Oo]g"|awk '{print $2}')
for i in $(seq 1 90) ; do echo $i; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment