Questions tagged [watchdog]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
39 views

Using a watchdog timer to prevent hang on reboot

I have a Raspberry Pi running Raspbian GNU/Linux 10 (buster), which has an onboard watchdog timer. I have configured this with a test script that looks for /tmp/force-reboot.txt, and if that file ...
2
votes
2answers
43 views

Reboot a linux when rootfs gets unavailable

How can one make a Linux-based device to reboot once its rootfs gets unavailable? There is software watchdog available only. The problem is that rootfs gets mounted from NFS. When I stop the NFS ...
0
votes
1answer
31 views

Memory watchdog for hungry applications

I have the following situation - I've got a remote PC with an encrypted drive. If the PC needs a restart, I need to be physically present to enter the decryption password because I don't have any way ...
0
votes
0answers
39 views

Health check failed: Watchdog timer unable to terminate hung NHC process

The sssd service on my ubuntu machine is crashing often, sometime due to Out of memory, this time I got a dump in /var/crash. Can someone help me understanding the file content, because it doesn't ...
0
votes
1answer
185 views

Resetting / refreshing system watchdog timer

I want to set up a high availability system, and to that end, was experimenting with several recovery methods. Assuming I have received a kernel update through automated means, which would mean a ...
0
votes
0answers
19 views

How do I set a watchdog on Linux?

I have an Intel atom cpu on a device running Ubuntu 16.04. I am now required to determine if I can enable a hardware watchdog on it. I have read some resources, and still not certain how to proceed. ...
1
vote
0answers
29 views

watchdog daemon failes to start on reboot

I have installed watchdog on my embedded linux system. Watchdog.service file [Unit] Description=watchdog daemon [Service] Type=forking EnvironmentFile=/etc/default/watchdog ExecStartPre=/bin/sh -c '...
1
vote
1answer
144 views

Systemd Watchdog & Notify through Docker

So I've been configuring this Docker setup to run a simple service on Linux. The service uses the systemd watchdog and the sdnotify python library to ensure the service doesn't freeze. My problem is ...
0
votes
0answers
19 views

How to set timeout for hardware watchdog in embedded linux?

I am developing on embedded Linux version 4.19.48. I am trying to set up a hardware watchdog. Currently I am able to do that by doing echo 1 >/dev/watchdog Currently it has 15 second timeout. How ...
1
vote
1answer
121 views

Unable to reset systemd watchdog timer

I am using an embedded linux environment. I have created a service which starts a qt application. [Unit] Description=AutoStart App [Service] Type=simple ExecStartPre=/home/root/Clean_Application.sh ...
0
votes
0answers
31 views

Why fg command within an infinite while loop works like a “keep alive” watchdog?

Recently, I've run into this implementation of a handicraft "keepalive" watchdog for a custom HTTP server: | | keepalive.sh | init.sh |_ main.py There are three files. The first one being ...
4
votes
1answer
536 views

watchdog daemon unable to reset hardware watchdog timer on Supermicro X9DR3-F motherboard

I have a Supermicro X9DR3-F motherboard where JWD jumper pins 1 and 2 are shorted and watchdog functionality in UEFI is enabled: This means that the system is reset after around 5 minutes if nothing ...
2
votes
1answer
81 views

Restart shell script if not printing

I have a shell script that just calls a Python file in loop e.g.: for i in $(seq $start_index $end_index) do python my_script.py done The Python process halts when it is not able to generate ...
3
votes
0answers
739 views

Hard lockup triggers reboot but no panic and no kdump

I have been trying to debug random system freezes when running the 4.14.93-rt kernel. To this end, I have enabled the lockup detector in the kernel using the following config: ...
0
votes
0answers
160 views

Getting hard and soft lockups on reload / shutdown

I keep getting these lockups, regardless of the distro (Fedora, Debian Stable, Ubuntu). Happens when I run Linux from Live USB, and attempt to reload or shutdown. I have also tried installing Fedora ...
4
votes
3answers
4k views

Is it possible to activate the watchdog on any Linux machine?

On an Orange Pi Zero running a Raspbian server, it's possible to use the watchdog very easily just by running the command echo 1 > /dev/watchdog as root. The idea is that the system will certainly ...
-1
votes
1answer
76 views

Is there any way to modify or manage the startup processes in RHEL 7.4?

I updated my kernel rpm from kernel version kernel-3.10.0-693.el7.x86_64 to kernel version kernel-3.10.0-957.1.3.el7.x86_64.After update, a process named watchdogd with pid 49 is continuously running ...
1
vote
2answers
4k views

Reboot sometimes hangs [closed]

My machine sometimes does not properly reboot. I am not sure what triggers it to work or not work. It happens sometimes both during automatic reboots when unattended-upgrades tries to reboot as well ...
0
votes
1answer
33 views

Design of Watchdog Alert System to Detect Missing Periodic Emails [closed]

I'm looking for ideas on how to automatically receive an alert (by email would be nice) if a specific periodic email were not to arrive. I would not necessarily have access to the system that ...
1
vote
1answer
1k views

Systemd watchdog kills services after changing system time manually

I have been investigating to fix what appears to be a problem with systemd watchdog but with no success. I have a bunch of services that are of Type=notify. If the system time is set backwards, every ...
1
vote
1answer
797 views

How can I ensure a complete system shutdown on FreeNAS/FreeBSD?

upsmon is configured to automatically shutdown the system upon power failure. However, the shutdown seems to fail halfway, leaving me without remote access to the system: Feb 2 12:21:54 the_host ...
0
votes
0answers
996 views

Watchdog is disabled, still it seems to restart my system

My machine is restarting a short time after I run a certain binary. I believe the reason is the watchdog, because when I remove /dev/watchdog and /dev/watchdog0, I can run the binary without problems. ...
1
vote
1answer
804 views

I can't find the /dev/watchdog

I need use the watchdog, but I can't find any watchdog device. It means I need softdog? But I use modprobe softdog it still does not work. So I download the new Kernel 4.10.10. But I don't know how ...
1
vote
0answers
659 views

supervisord as watchdog for various services

I tried to configure supervisord as watchdog for tomcat, redis and some other services. The goal is to automatic restart if the services are crashed or stopped. Here is my configuration for redis and ...
8
votes
1answer
12k views

Should I disable NMI watchdog permanently or not?

Why we need to keep the nmi_watchdog enabled and what could happen if I disable it permanently ? As some applications recommends to disable NMI watchdog to work properly, what's the advantage of ...
3
votes
1answer
381 views

Kernel upgrade (4.10) made XServer and rest of the system fail (Arch)

After 5 days not using my PC, I decided to get the latest packages which involved an upgraded kernel (4.9.11 -> 4.10.1), renamed and updated radeon graphics drivers (mesa) and some changes to KDE and ...
1
vote
2answers
5k views

Problem with systemd starting watchdog

I am trying to enable the watchdog service (on Raspbian Jessie). I have installed watchdog and (hopefully) configured it. sudo systemctl start watchdog seems to start it OK systemctl status watchdog....
3
votes
0answers
444 views

sudo dnf system-upgrade reboot fails to start install F25 and goes back to F24

I want to upgrade to F25 from F24. I followed these steps: sudo dnf upgrade --refresh sudo dnf install dnf-plugin-system-upgrade sudo dnf system-upgrade download --refresh --allowerasing --releasever=...
0
votes
1answer
244 views

Watchdog for py script in archlinux

I would like a method as described here to set a watchdog to keep a python script alive, but in archlinux. Thanks EDIT Solved using the example provided by smokes2345. I created a python_script....
1
vote
1answer
1k views

suppressing /dev/watchdog system message

I'm triggering linux watchdog every 3 secs. echo 1 > /dev/watchdog >/dev/null 2>&1 But I still get following system message: *[ 966.695312] watchdog watchdog0: watchdog did not stop!*...
0
votes
1answer
3k views

Enable watchdog timer of BeagleBone Black which works even if os could not boot

We know that by opening /dev/watchdog the watchdog activates and by sending a character in less that a minute it will reset. the instructions are here. The processor used for BBB AM335x enables its ...
0
votes
1answer
3k views

How to log Systemd Watchdog restarts

I have systemd running with a watchdog, and a service that uses a systemd watchdog to restart the service when it locks up. If the service locks up repeatedly then systemd reboots the machine. How ...
1
vote
0answers
115 views

DMP 3300MX-A embedded pc, debian 6.0 squeeze, kernel 3.2, bios watchdog and harwdare reset

I have been studying how to properly set up a watchdog on my embedded system, have read plenty of posts, but I am stuck with no solution. I've read: How to correctly configure Debian watchdog daemon ...
7
votes
1answer
7k views

difference between /dev/watchdog and /dev/watchdog[0-9]?

On my (embedded) system I have multiple watchdog character devices: # ls -al /dev/watchdog* crw------- 1 imp root 10, 130 Apr 26 07:43 /dev/watchdog crw------- 1 root root 253, 0 Apr 26 07:44 /...
2
votes
1answer
163 views

Watchdog too fast for apache PID-file

I am running Ubuntu Trusty on an ARM embedded board. Init System is Upstart. The watchdog (v5.13) should supervise the apache server. Obviously the watchdog is testing for the apache pid-file before ...
1
vote
0answers
1k views

Periodically get CPU usage for single process

I've got a problem with the kswapd0 process (pid 52), which from time to time would start to use 25% of the cpu (one full core). I usually stop it with the command sudo sh -c "echo 1 > /proc/sys/...
24
votes
3answers
56k views

message at shutdown: watchdog did not stop!

At shutdown I often get the message watchdog did not stop! and then the laptop freezes after few other lines without shutting down. Any idea on how to fix this? Recently it happened very often, ...
3
votes
1answer
1k views

Systemd: service doesn't restart with WatchdogSec option set

I'm trying to manager qemu with systemd. If qemu crashes, it can be restart automatically. I have the following unit file: [Unit] Description=vm manager After=network.target Before=shutdown.target ...
1
vote
1answer
578 views

Send network connectivity ping from server to client

So I have a server and a client computer which I must have running on the network all the time. Somemtimes because I am running my client computer on WLAN the network goes down so I need to restart it....
7
votes
2answers
9k views

Watchdog daemon doesn't start at boot

I'm using a Raspberry Pi B, with Raspbian. After upgrading to Jessie, watchdog daemon doesn't start at boot anymore. Starting it manually using "sudo service watchdog start" does work. I tried: ...
1
vote
0answers
350 views

What are the consequences of disabling nmi_watchdog?

My aim was to improve battery life for my laptop. I have already applied some advised modifications like enabling ALPM, and adding pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1 at grub ...
6
votes
1answer
2k views

Error codes for watchdog daemon

Here's a line from a linux syslog: watchdog[2423]: shutting down the system because of error 101 However, after searching online and in man watchdog, I cannot find any discussion or explanation of ...
11
votes
1answer
3k views

Do I own a watchdog?

Quite often times when I do a reboot, I get the following error message: kernel: watchdog watchdog0: watchdog did not stop! I tried to find out more about watchdog by doing man watchdog, but it says ...
7
votes
1answer
15k views

How can I disable a watchdog, once it has been enabled?

I created a watchdog daemon application with a time interval of 30 seconds; for every 5 seconds, I am trying to hit the watchdog counter, and it's working fine. If I kill this daemon process it shows ...
3
votes
2answers
5k views

Any way in Bash to write to a file every X seconds without closing it?

The hardware watchdog on my system needs a 0 written to /dev/watchdog at less than 60 seconds interval or it will fire. The file handle must be kept open however or the watchdog is then disabled. E....
8
votes
2answers
19k views

linux watchdog and systemd watchdog

Any way to register application with systemd watchdog at runtime ? I mean don't use systemd unit file, via systemd API for example Linux watchdog is used for system reset only ? Can it be used for ...
2
votes
1answer
6k views

How enable watchdog?

I'm struggling with the watchdog timer (wdt) for a while. I can't get it working. My microcontroller is a AriaG25, based on the AT91SAM925. I have used this tutorial to compile the kernel. The ...
0
votes
0answers
84 views

Building a process Watchdog [duplicate]

I intend to write a process watchdog that runs out of cron or similar that watches all of the core processes denoting things like run state, VMstat, Inet operations and reports it to a file or ...
6
votes
1answer
15k views

How to correctly configure Debian watchdog daemon for BIOS Watch Dog?

Supermicro main boards contain a BIOS feature named "Watch Dog Function". Having Debian 6.0.6 with kernel "Linux debian 2.6.32-5-amd64 #1 SMP" we did: Change BIOS "Watch Dog Function" from Disabled ...
6
votes
1answer
9k views

What is a “watchdog reset”?

After reading this question, I was a little confused; it sounds like some daemon reacting by rebooting a system. Is that right? Is it a common occurrence in embedded *nixes?