watchdog: Add machine specific watchdog file
This commit is contained in:
parent
6dcaf7d614
commit
aed232262e
|
@ -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
|
||||||
|
#repair-timeout =
|
||||||
|
#test-binary =
|
||||||
|
#test-timeout =
|
||||||
|
|
||||||
|
watchdog-device = /dev/watchdog
|
||||||
|
|
||||||
|
# Defaults compiled into the binary
|
||||||
|
#temperature-device =
|
||||||
|
#max-temperature = 120
|
||||||
|
|
||||||
|
# Defaults compiled into the binary
|
||||||
|
#admin = root
|
||||||
|
#interval = 1
|
||||||
|
#logtick = 1
|
||||||
|
#log-dir = /var/log/watchdog
|
||||||
|
|
||||||
|
# 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
|
|
@ -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
|
||||||
|
#repair-timeout =
|
||||||
|
#test-binary =
|
||||||
|
#test-timeout =
|
||||||
|
|
||||||
|
watchdog-device = /dev/watchdog
|
||||||
|
|
||||||
|
# Defaults compiled into the binary
|
||||||
|
#temperature-device =
|
||||||
|
#max-temperature = 120
|
||||||
|
|
||||||
|
# Defaults compiled into the binary
|
||||||
|
#admin = root
|
||||||
|
#interval = 1
|
||||||
|
#logtick = 1
|
||||||
|
#log-dir = /var/log/watchdog
|
||||||
|
|
||||||
|
# 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
|
|
@ -0,0 +1,16 @@
|
||||||
|
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||||
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:"
|
||||||
|
PRINC = "2"
|
||||||
|
|
||||||
|
SRC_URI_append_sysmobts-v1 = " file://watchdog.conf"
|
||||||
|
SRC_URI_append_sysmobts-v2 = " file://watchdog.conf"
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
|
||||||
|
if [ -e ${WORKDIR}/watchdog.conf ]; then
|
||||||
|
install -D -m 0644 ${WORKDIR}/watchdog.conf ${D}/${sysconfdir}/
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# bug in poky meta/classes/base.bbclass?
|
||||||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
Loading…
Reference in New Issue