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
8
votes
3 answers

Calling a sd_notify(0, "WATCHDOG=1") in a service

I have a sys d service. I want to implement a watch dog for that. It's something like, [Unit] Description=Watchdog example service [Service] Type=notify Environment=NOTIFY_SOCKET=/run/%p.sock ExecStartPre=-/usr/bin/docker kill…
pnv
  • 2,985
  • 5
  • 29
  • 36
7
votes
4 answers

Linux automatically restarting application on crash - Daemons

I have an system running embedded linux and it is critical that it runs continuously. Basically it is a process for communicating to sensors and relaying that data to database and web client. If a crash occurs, how do I restart the application…
user623879
  • 4,066
  • 9
  • 38
  • 53
7
votes
5 answers

What does "variable|variable" mean in C++?

I was looking into this ITE8712 watchdog timer demo code when I saw this: void InitWD(char cSetWatchDogUnit, char cSetTriggerSignal) { OpenIoConfig(); //open super IO of configuration for Super I/O SelectIoDevice(0x07); //select…
IBG
  • 465
  • 12
  • 34
7
votes
2 answers

How to determine whether a hardware or a software watchdog is implemented on the machine?

I have an embedded computer I am trying to develop on and I wanted to know if the watchdog it has is a software watchdog or if it is a hardware watchdog. First I checked and I saw that /dev/watchdog is present inside /dev. But I did not see a…
nemo
  • 593
  • 2
  • 8
  • 22
7
votes
3 answers

Python Watchdog: Is there a way to pause the observer?

I am using Watchdog to monitor a directory and keep it in sync with Dropbox. I am facing a situation where every time I download a file from Dropbox, I trigger an upload event as I need to write to the directory Watchdog is monitoring. This is the…
Ayrx
  • 2,092
  • 5
  • 26
  • 34
7
votes
4 answers

Is BackgroundWorker's IsBusy same as "IsAlive"?

I am trying to figure out a way to verify that a BackgroundWorker thread is alive (i.e. still running. The thread is essentially implemented as a simple infinite loop: while (AllConditionsMet()) { DoSomeMagic(); Thread.Sleep(10000); } The…
scatmoi
  • 1,958
  • 4
  • 18
  • 32
6
votes
1 answer

Watchdog Python script for Windows file system

I would like to write a small notification script using python watchdog for windows. The script should do - watch a directory and when ever file is created - trigger an exe passing filename as argument. This says for windows you need "lot of…
webminal.org
  • 44,948
  • 37
  • 94
  • 125
6
votes
3 answers

How to secure methods in java (overflow and so on)

i have to write a "WatchDog" in Java, who secure that Threads don't perform too long. With the initialization of the Objects it's no Problem, i made a Class, who calls the WatchDog and the constructor with reflections in the run() method. A Thread…
Nicolas
  • 269
  • 4
  • 14
6
votes
1 answer

iOS Pasteboard strange random crash

Our app received the crash multi times due to use Pasteboard. Under this situation when I try to use system Notes paste the content, the system notes will block too. So I write a program try to read the pasteboard, but it will also crash when I use…
afei
  • 123
  • 1
  • 11
6
votes
1 answer

How to register a periodic work request with WorkManger system-wide once (i.e. after boot or installation)

I need a component in my Android app that is best being described as a watchdog, i.e. a function that is executed every 30min +/- 5min and asserts that a certain condition is still met. The watchdog must also be executed after the device has been…
6
votes
1 answer

How to activate bcm2835_wdt watchdog kernel module for raspberry pi 3?

I have been trying to activate bcm2835_wdt watchdog module of raspberry pi 3 for 6 hours but I couldn't. modprobe bcm2835_wdt returns no error but lsmod command doesn't return bcm2835_wdt module in the list. I have loaded watchdog and chkconfig…
user1712451
  • 61
  • 1
  • 3
6
votes
1 answer

Using watchdog of python to monitoring afp shared folder from linux

I want linux machine(Raspberry pi) to monitor a shared folder by AFP(Apple file protocol, macbook is host). I can mount shared folder by mount_afp, and installed watchdog python library to monitor a shared folder. The problem is that watchdog can…
Jade Lee
  • 69
  • 2
  • 8
6
votes
1 answer

How can i terminate myself if i run too long?

I have a application that runs periodically (it's a scheduled task). The task is launched once a minute, and normally only takes a few seconds to do its business, then exits. But there's a ~1 in 80,000 chance (every two or three months) that the…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
3 answers

Systemd Daemon in Python with watchdog support

I want to write a daemon in python which gets started via systemd. I want to use Type=notify, this way I don't have to do the double fork magic. According to the docs: The reference implementation for this notification is provided by…
guettli
  • 25,042
  • 81
  • 346
  • 663
6
votes
2 answers

Check specific file has been modified using python watchdog

i would like to know how to check change of a specific file under a folder. I found that watchdog module could check change for files in folder but i need 1 file only (with fixed name). Please kindly help on this and thanks. class…
user1811678
  • 81
  • 1
  • 6
1 2
3
36 37