summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/watchdog/watchdog_5.15.bb
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: fix init script for sysvinitChen Qi2018-06-181-3/+3
| | | | | | | | | | | | | | | The current init script is installed from source with redhat style. It does not get configuration from /etc/default/watchdog. We should use debian style init script. Write our own script just like what wd_keepalive does. Also, in the init script, we check the existence of /dev/watchdog to determine whether to start the daemon or not. (From OE-Core rev: a31f8dd34e8ea34dfb087ed464575aa390ece09b) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: make init script start after syslogChen Qi2018-06-181-2/+2
| | | | | | | | | | | | | | We need to make sure logs are not lost. As long as there's no strong and vaild reason, we should make daemons start after syslog. As a side effect, we could check the logs to see if there are some potential problem. In OE, the 'parselogs' test case could do it automatically. (From OE-Core rev: 41e4d728ef92586e2714fa0c136b838c3fda051e) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: disable systemd services by defaultChen Qi2018-06-181-0/+3
| | | | | | | | | | | | | systemd has internal support for watchdog. See the RuntimeWatchdogSec in /etc/systemd/system.conf. We'd better just disable this service by default. If users want to use watchdog, consider using the systemd one. (From OE-Core rev: 183c9125e78ae1035894600a66b4ea1fa6a3a532) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: remove the useless watchdog-conf.patchChen Qi2018-06-181-1/+0
| | | | | | | | | | | | This patch modifies watchdog.conf file. But this file is deliberately deleted in do_install. The current mechanism in OE is to use another recipe watchdog-conf to handle watchdog configuration. So the patch is really useless. (From OE-Core rev: 80638247143b15a5643f9fcc116d7bc7dcbf3496) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: Use libtirpc even on glibcKhem Raj2018-05-091-5/+6
| | | | | | | | | We dropped in-tree obsoleted rpc from glibc (From OE-Core rev: 6f4814dd3a14faa49b9b501ec2e19f0ff89fd860) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: remove interdependencies of watchdog and wd_keepaliveMaxin B. John2018-03-201-1/+5
| | | | | | | | | | | | | | | | Since watchdog and watchdog-keepalive packages can't be installed together, move wd_keepalive.service to watchdog-keepalive package. Remove the inter-dependencies of watchdog and wd_keepalive services as well. [YOCTO #12565] (From OE-Core rev: 1d09eacc78ff44df54d6ace26702f4d9bf9e639c) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: enable systemd supportKai Kang2017-08-301-5/+10
| | | | | | | | | | | | Inherit systemd.bbclass to enable systemd support for watchdog. And fix indentation of do_install_append() as well according to: https://www.openembedded.org/wiki/Styleguide#Format_Guidelines (From OE-Core rev: a30fcb95d527bc2a0981af5c1ed179a122bb055c) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDSFabio Berton2017-02-151-4/+5
| | | | | | | | | | | | watchdog-keepalive is a simplified version of the watchdog daemon and can't be installed along with watchdog daemon, we need to choose which daemon install. (From OE-Core rev: 35e36f7f2d1f7e3ef70ba473a91fb6f946752f1b) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog-config: Add recipeFabio Berton2016-09-091-1/+5
| | | | | | | | | | | | Provides configuration files for watchdog. Add watchdog-config as a runtime dependence of watchdog and remove watchdog.conf file from watchdog installation. (From OE-Core rev: 6864ad2e863205472f8ea2057c61e949dc450151) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: Add wd_keepalive packageFabio Berton2016-09-091-3/+20
| | | | | | | | | | | | | | | | | This is a simplified version of the watchdog daemon. It only opens /dev/watchdog, and keeps writing to it often enough to keep the kernel from resetting, at least once per minute. Each write delays the reboot time another minute. After a minute of inactivity the watchdog hardware will cause a reset. In the case of the software watchdog the ability to reboot will depend on the state of the machines and interrupts. Installs wd_keepalive binary and enable initscript. (From OE-Core rev: b76af8a0982c3c7473bd6ba067d1c8030d4d2f26) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: Fix build with muslKhem Raj2016-07-011-2/+3
| | | | | | | | | | A similar patch has been submitted upstream (From OE-Core rev: f6f531e7795dceefa8a42246cb9ed4efbffca2dd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* watchdog: update to 5.15Alexander Kanavin2016-06-041-0/+37
Removed patches are all merged upstream. (From OE-Core rev: e25b27c89dd13f5a311b49a974b4410e7993ddae) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>