watchdog

How can I verify if a Windows Service is running

Hi, I have an application in C# (2.0 running on XP embedded) that is communicating with a 'watchdog' that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this? Thanks ...

Infinite loop in FreeBSD

I have a script that constantly segfaults - the problem that I can't solve as segfault is in python libxml bindings - didn't write those. Ok, so in Linux I used to run an inf.loop so that when script dies - it restarts, like so: #!/bin/bash while [ 1 ] do nice -n 19 python server.py sleep 1 done Well, I can't seem to find /bin/bash in...

Linux software watchdog

I am writing a system monitor for Linux and want to include some watchdog functionality. In the kernel, you can configure the watchdog to keep going even if /dev/watchdog is closed. In other words, if my daemon exits normally and closes /dev/watchdog, the system would still re-boot 59 seconds later. That may or may not be desirable behav...

How to debug a watchdog timeout

I have a watchdog in my microcontroller that if it is not kicked, will reset the processor. My applications runs fine for a while but will eventually reset because the watchdog did not get kicked. If I step through the program it works fine. What are some ways to debug this? EDIT: Conclusion: The way I found my bug was the watchdog b...

Crash reporting watchdog for when my application locks up on a customer's machine

I'm working with a somewhat unreliable (Qt/windows) application partly written for us by a third party (just trying to shift the blame there). Their latest version is more stable. Sort of. We're getting fewer reports of crashes, but we're getting lots of reports of it just hanging and never coming back. The circumstances are varied, and ...

How to determine which task is dead?

I have an embedded system that has multiple (>20) tasks running at different priorities. I also have watchdog task that runs to check that all the other tasks are not stuck. My watchdog is working because every once in a blue moon, it will reboot the system because a task did not check in. How do I determine which task died? I can't ...

Can I create a software watchdog timer thread in C++ using Boost Signals2 and Threads?

I am running function Foo from somebody else's library in a single-threaded application currently. Most of the time, I make a call to Foo and it's really quick, some times, I make a call to Foo and it takes forever. I am not a patient man, if Foo is going to take forever, I want to stop execution of Foo and not call it with those argum...

How do I code a watchdog timer to restart a Windows service?

I'm very interested in the answer to another question regarding watchdog timers for Windows services (see here). That answer stated: I have also used an internal watchdog system running in another thread. That thread looks at the main thread for activity like log output or a toggling event. If the activity is not seen then the servic...

Drupal watchdog database table flooded with same message over and over?

I've: Disabled cron Disabled database logging Cleared my caches Commented out the code that is being displayed as the error And still, the same error message is being written to Watchdog. I execute: "delete from watchdog" and IMMEDIATELY after I check in the watchdog table, the same error is there. Not that it would help, but here'...

Tools for implementing a watchdog timer in python

I'm writing some code for testing multithreaded programs (student homework--likely buggy), and want to be able to detect when they deadlock. When running properly, the programs regularly produce output to stdout, so that makes it fairly straightforward: if no output for X seconds, kill it and report deadlock. Here's the function protot...

Watchdog built into the same process as the program it controls

I run a Visual C++ console test program inside the daily build. Every now and then the test would call some function that was changed by other developers improperly, descend into an infinite loop and hang thus blocking the build. I need a watchdog solution as simple as possible. Here's what I came up with. In the test program entry poin...

Who is refreshing hardware watchdog in Linux?

Processor AT91SAM9G20 kernel 2.6 Watchdog is enabled at bootstrap level and configured for 16 seconds. Watchdog mode register can be configured only once. When code hangs either in bootstrap or bootloader or kernel board is taking reboot. But once kernel comes up even though watchdog is not refreshed in any of the application board is no...

Service Watch-dog design

Hello 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 get crashed I need to send an e-mail to the administrator to start the services. I...

Run cron job only if it isn't already running

Hello, So I'm trying to set up a cron job as a sort of watchdog for a daemon that I've created. If the daemon errors out and fails, I want the cron job to periodically restart it... I'm not sure how possible this is, but I read through a couple of cron tutorials and couldn't find anything that would do what I'm looking for... My daemon...

How to implement a master/watchdog script in python?

I need it to open 10 processes, and each time one of them finishes I want to wait few seconds and start another one. It seems pretty simple, but somehow I can't get it to work. ...

long startup time...Need help

My app is all done and working great. So now I ran it on a old iPhone and the app takes 17.3 seconds to start!?!? i spent a lot of time looking into it and i found that the reason it is taking so long to load is i have a lot of views and each view has a png background image. All my views and made in IB and in my code: #import "MyTest...

Programming in presence of watchdog timer

Hi, I am new to embedded systems programming, although I have done courses during studies, practical programming is still a bit further away. Here is the problem: I have to program a small system on NXP LPC2103 microcontroller (ARM 7 based), without an operating system. It has a watchdog timer which needs to be regularly updated. The s...

Watchdog test in Windows XP

I want to test the watchdog in my system. How can I totally freeze the Windows XP, in order to let the watchdog to perform reset? I tried the "fork bomb", but it didn't help. I don't care if OS will be damaged or destroyed. This is test station, so I can restore it quickly. Thank you in advance. ...

iPhone App Fails to Launch in Time 8badf00d - Crash Log

Hi, I have been searching for days on this topic and cannot come up with a straight answer on how to cut down on the launch time of my app. Can anyone take a couple minutes to interpret this crash log for me (or teach me how)? Cuz I have no clue and I have tried searching and even contacting Apple. Thanks so much in advance. This fo...

The Why and the How of Creating a Watchdog in Cocoa/Objective-C

Happy Monday to you all! Here is my situation. Any assistance greatly appreciated! I have created an executable that when installed gets placed in the Launch Agents folder of the machine. In theory it should run perpetually, collecting data every second. It can stop when the machine is asleep, but restart when the computer is reactivat...