Questions tagged [watchdog]

Watchdog and watchdog timers.

Watchdog / watchdog timer is mechanism built-in in the system on hardware or software level can reset the system if serious problems are detected.

External links that are helpful when working on watchdog:

555 questions
3
votes
1 answer

How can I make an LED blink every n seconds without developing a lag?

I'm using an Arduino Uno to control LED. I want the LED to turn on every m seconds and remain ON for n seconds. I've tried this code using the delay() function (by adding delays after LED is turned ON and OFF) and also using the millis() function…
Severus
  • 131
  • 5
3
votes
1 answer

Linux software watchdog configuration

I need to configure linux software watchdog (enabled in kernel configuration - CONFIG_SOFT_WATCHDOG=y, which gives me a new device /dev/watchdog1) such that if enabled and if a watchdog timeout occurs, it can launch a script/binary, instead of…
mbedsys
  • 31
  • 1
  • 3
3
votes
2 answers

Python watchdog: ignoring duplicate events

I'm trying to set up watchdog so I can monitor changes to JavaScript files. But you always get duplicate events when a single file is modified. I want to set it up so that when a file is modified it looks at the time of the event and if it is the…
Rob Kwasowski
  • 2,690
  • 3
  • 13
  • 32
3
votes
2 answers

Iphone, how can i avoid the watchdog killing my application for taking long time to launch?

what is the proper way to notify the watchdog that i'm not in an endless loop and that i'm still loading so don't kill my app? I'm receiving in my crashlogs Exception Type: 00000020 Exception Codes: 0x8badf00d and only when running the app from…
LolaRun
  • 5,526
  • 6
  • 33
  • 45
3
votes
3 answers

PostgreSQL - Fail to start delegate ip address on pgpool 2

I try to set up a pgpool server on ubuntu server and following this link : pgpool-II Tutorial [ Watchdog ]. But when I to start a pgpool service, the delegated IP doesn't start. I have seen in a log file on syslog and got some error like this. …
3
votes
0 answers

Unit testing code that relies on keyboard interrupt

I want to test a part of the code that has an infinite loop and break out when a keyboard interrupt is issued. I am using watchdog module to watch for new files created in a directory. Here is the relevant code : class…
Ajit
  • 667
  • 2
  • 14
  • 27
3
votes
1 answer

Seeing multiple events with Python watchdog library when folders are created

I am having issues where I am seeing additional events that I am not expecting. I am watching the folder C:\Users\kvasko\Downloads\data. If I copy a folder 2017\07\25\LogFile.xml I will see the following 3 "created" events, when I would expect to…
Kevin Vasko
  • 1,561
  • 3
  • 22
  • 45
3
votes
1 answer

Difference between systemd software watchdog and "normal" process monitoring

I've tried out 2 systemd unit configurations: progA.service [Service] Type=simple ExecStart=/opt/progA WatchdogSec=10s progB.service [Service] Type=simple ExecStart=/opt/progB Restart=always RestartSec=10 The effect in 2 cases is similar: whenever…
3
votes
1 answer

Dynamically updating plot with watchdog

Whenever a new txt file is added to a directory, I would like to plot and show the data from the file. If another file appears, I want the plot to update and show the new data. Creating a plot outside the main caused thread errors, so I made a (not…
allie
  • 31
  • 1
3
votes
2 answers

Implementing a watchdog timer in C++11

I'm trying to implement a small watchdog timer class in C++ 11 that should call some code when it expires. Watchdog.h: #pragma once #include #include class Watchdog { public: Watchdog(); Watchdog(unsigned int…
UnTraDe
  • 3,747
  • 10
  • 36
  • 60
3
votes
0 answers

Combination of python-daemon and watchdog

I try to get run the following code snippet. As soon as I daemonize the app, it doesn't watch for new incoming pcap files anymore. #!/usr/bin/env pypy import daemon import watchdog import logging import logging.handlers from logging import…
Kirsel
  • 31
  • 1
3
votes
1 answer

Beaglebone Black watchdog in Python

I have a Beaglebone Black running Debian and I need a script running in background, which would check every few seconds if the system is still running. As far as I understand, watchdog in BBB is hardware-based and runs independently from OS, so it…
3
votes
1 answer

How to test tx_timeout operation of a network kernel module?

I'm having some doubts about how I can test the operation tx_timeout of a network kernel module. For example, lets take the snull example from chapter 14 of Linux Device Driver book. void snull_tx_timeout (struct net_device *dev) { struct…
jcfaracco
  • 853
  • 2
  • 6
  • 21
3
votes
1 answer

How to implement a kernel thread that never sleeps?

Problem I need a kernel thread that is able to work for prolonged periods of time without yielding, basically fully dedicating a CPU core to it on demand: int my_kthread(void *arg) { while(!kthread_should_stop()) { do_some_work(); …
sls
  • 284
  • 1
  • 7
3
votes
4 answers

Service Watch-dog design

I am working on a legacy product which has seven Windows services and a user interface. There are some bugs in the services which causes crash in every 10-15 days. I need to write an application to monitor the state of the services. If the services…
bdhar
  • 21,619
  • 17
  • 70
  • 86