blob: f13895212842c84fbe0f2bb164dcc8ecd4de8f25 [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001SUMMARY = "Software watchdog"
2DESCRIPTION = "Watchdog is a daemon that checks if your system is still \
3working. If programs in user space are not longer executed it will reboot \
4the system."
5HOMEPAGE = "http://watchdog.sourceforge.net/"
6BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194"
7
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00008LICENSE = "MIT"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06009LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
10
11SRC_URI = " \
12 file://watchdog.default \
13 file://watchdog.conf \
14"
15
Andrew Geissler78b72792022-06-14 06:47:25 -050016# The default value is 60 seconds when null.
17WATCHDOG_TIMEOUT ??= ""
18
Patrick Williamsc0f7c042017-02-23 20:41:17 -060019do_install() {
20 install -Dm 0644 ${WORKDIR}/watchdog.default ${D}${sysconfdir}/default/watchdog
21 install -Dm 0644 ${WORKDIR}/watchdog.conf ${D}${sysconfdir}/watchdog.conf
Andrew Geissler78b72792022-06-14 06:47:25 -050022
23 if [ -n "${WATCHDOG_TIMEOUT}" ]; then
24 echo "watchdog-timeout = ${WATCHDOG_TIMEOUT}" >> ${D}/etc/watchdog.conf
25 fi
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026}
27