WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: watchdog daemon?  (Read 2840 times)

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
watchdog daemon?
« on: February 01, 2015, 08:10:36 AM »
Using the latest 6.0 release, I have no problem loading the bcm2708_wdog module but can't seem to find the watchdog daemon (or its configuration file) anywhere on the system or in tce-ab.

Seems that busybox can include a watchdog daemon applet but the build present in piCore 6.0 doesn't?

Is the daemon necessary for the watchdog to work or has something been hardcoded for it?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: watchdog daemon?
« Reply #1 on: February 01, 2015, 02:23:33 PM »
watchdog starts working when /dev/watchdog opened and restarts system after 10 seconds if not opened again. It means that it must be opened in every less than 10 seconds. It can be done by a generic watchdog daemon, like watchdog.tcz in the repo or dedicated programs, applications with built-on watchdog handling.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: watchdog daemon?
« Reply #2 on: February 01, 2015, 03:17:28 PM »
Hmmm... on Core 4.7.7 on x86, the timeout seems to be one minute.  Is there some simple way to change the timeout interval?

Not that it's going to be all that useful on my PC... I'm just playing around with it.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Re: watchdog daemon?
« Reply #3 on: February 01, 2015, 04:40:32 PM »
bmarkus >> Thanks, that watchdog.tcz package wasn't actually there when I posted.

Lee >> You can most likely change the timeout interval as a parameter to pass when the module is loaded (or a kernel command line parameter if the watchdog module is built-in).


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: watchdog daemon?
« Reply #4 on: February 01, 2015, 04:47:13 PM »
bmarkus >> Thanks, that watchdog.tcz package wasn't actually there when I posted.


True, just added it.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Re: watchdog daemon?
« Reply #5 on: February 01, 2015, 05:44:32 PM »
True, just added it.

I can confirm it works beautifully after proper configuration. Even handles the built-in temperature sensor just fine. Thanks for adding the module!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: watchdog daemon?
« Reply #6 on: February 01, 2015, 06:09:28 PM »
Thanks for the feedback :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."