summaryrefslogtreecommitdiff
path: root/package/watchdog/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-30 12:49:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-30 12:49:59 +0100
commit276e47c2fae8adc759cf8672cc9f60e2cebbfb0c (patch)
treea9f8d4c322e19ea884e39bcf6a79af9377c87a9b /package/watchdog/files
parente6164dfe91cdc8b4fc8aa21117a6954bb0c9b731 (diff)
update to latest upstream version
add a default config file with watchdog enabled. Enable watchdog in /etc/rc.conf by default.
Diffstat (limited to 'package/watchdog/files')
-rw-r--r--package/watchdog/files/watchdog.conf41
-rw-r--r--package/watchdog/files/watchdog.postinst2
2 files changed, 42 insertions, 1 deletions
diff --git a/package/watchdog/files/watchdog.conf b/package/watchdog/files/watchdog.conf
new file mode 100644
index 000000000..0314adcfb
--- /dev/null
+++ b/package/watchdog/files/watchdog.conf
@@ -0,0 +1,41 @@
+#ping = 172.31.14.1
+#ping = 172.26.1.255
+#interface = eth0
+#file = /var/log/messages
+#change = 1407
+
+# Uncomment to enable test. Setting one of these values to '0' disables it.
+# These values will hopefully never reboot your machine during normal use
+# (if your machine is really hung, the loadavg will go much higher than 25)
+#max-load-1 = 24
+#max-load-5 = 18
+#max-load-15 = 12
+
+# Note that this is the number of pages!
+# To get the real size, check how large the pagesize is on your machine.
+#min-memory = 1
+
+#repair-binary = /usr/sbin/repair
+#test-binary =
+#test-timeout =
+
+watchdog-device = /dev/watchdog
+watchdog-timeout = 20
+
+# Defaults compiled into the binary
+#temperature-device =
+#max-temperature = 120
+
+# Defaults compiled into the binary
+#admin = root
+#interval = 10
+#logtick = 1
+
+# This greatly decreases the chance that watchdog won't be scheduled before
+# your machine is really loaded
+realtime = yes
+priority = 1
+
+# Check if syslogd is still running by enabling the following line
+#pidfile = /var/run/syslogd.pid
+
diff --git a/package/watchdog/files/watchdog.postinst b/package/watchdog/files/watchdog.postinst
index 17d144395..a44195149 100644
--- a/package/watchdog/files/watchdog.postinst
+++ b/package/watchdog/files/watchdog.postinst
@@ -1,3 +1,3 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf watchdog watchdog NO
+add_rcconf watchdog watchdog YES