Questions tagged [watchdog]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

Linux watchdog ping with interval longer than hardware watchdog limit

I am running Linux on a hardware that has a 16 second hardware watchdog timer (sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)). I set in watchdog.conf: watchdog-device ...
filo's user avatar
  • 193
0 votes
0 answers
42 views

How to read watchdog registers on x86 Linux?

I want to read the Intel iTCO watchdog registers on my Intel Lynx Point system. I found the watchdog here: [ 5598.341020] iTCO_wdt iTCO_wdt.1.auto: Found a Lynx Point TCO device (Version=2, TCOBASE=...
defoe's user avatar
  • 153
0 votes
0 answers
49 views

How to use systemd WatchDog to allow alive pings from a child process?

I've configured a bash script that pipes multiple processes to run as a service. This works fine but I now want to use WatchdogSec to monitor if the state is still ok and if not to restart all child ...
Ramon Smits's user avatar
0 votes
0 answers
144 views

openBMC AST2500-EVB auto reboot

I have built openBMC for AST2500-EVB and when I run the .mtd image by qemu, the u-boot runs successfully but during the linux kernel boot, it stops automatically and u-boot runs again. This loops ...
madison's user avatar
0 votes
1 answer
70 views

How to restart a command if it hasn't updated a file for a few minutes

I'm kinda new to bash scripting so bear with me. I have a program that prints logs almost every second into a file. I want it to restart if current time is few mins more than the file's last ...
Letsgocode's user avatar
0 votes
1 answer
2k views

How can I force systemd service to start at boot

Apologies if I am missing details, I may not be aware of all the areas on systemd I am trying to make my phosphor-watchdog service start automatically after another service, I cannot understand why it ...
Abdel Fel's user avatar
1 vote
3 answers
2k views

What is a good way to test watchdog (script or command to deliberately overload system)

I have a hardware watchdog, what is a good way to test that it actually works? Is there a standard script or such to set my system in an infinite loop to hog all resources or such to the point of ...
Matt Welander's user avatar
0 votes
1 answer
1k views

How to verify if node reboot was triggered by the watchdog?

I have created software watchdog device using command: $ sudo modprobe softdog soft_margin=60 In OS log it is visible that software watchdog was initialized: Jul 12 09:49:00 patroni4 kernel: softdog: ...
msutic's user avatar
  • 1
0 votes
1 answer
2k views

get rid of rebooting messages and watchdog

Broadcast message from username@Desktop (Sun 1919-08-10 11:45:14 CST): The system is going to reboot NOW! [756.345947] watchdog: watchdog0: watchdog did not stop! [756.472889] watchdog: watchdog0: ...
Firestar-Reimu's user avatar
2 votes
2 answers
2k views

How to kill watchdog Daemon on Linux

I configured my watchdog.conf, and i want try if my computer restart when it crash. so, I wanted kill my Watchdog to try if my computer will restart. But I try to killed it with the command "...
Zapsalis's user avatar
0 votes
0 answers
317 views

RPI4 with Raspbian OS locked in boot loop after changing watchdog timeouts in `system.conf`

In view of enabling the watchdog on my Raspberry Pi 4 running Raspbian (raspberry pi OS) I have modified /etc/systemd/system.conf by uncommenting the following three lines: RuntimeWatchdogSec=2min ...
Fab's user avatar
  • 1
3 votes
1 answer
31k views

Systemctl service failed Exit-code

My systemctl Code dont work ● <appname>.service Loaded: loaded (/etc/systemd/system/<appname>.service; disabled; vendor prese Active: failed (Result: exit-code) since Mon 2022-04-04 ...
Rotesass's user avatar
2 votes
1 answer
2k views

How to make systemd to stop kicking the hardware watchdog

I have configured systemd to use hardware watchdog. My kernel version is 5.10 This is the configuration RuntimeWatchdogSec=120 in /etc/systemd/system.conf WatchdogDevice=/dev/watchdog1 I can see that ...
root's user avatar
  • 23
2 votes
2 answers
6k views

How to check systemd hardware watchdog state

How does one check the status of the hardware watchdog with systemd? With util-linux you have the wdctl command which prints some information, however this doesn't always work (e.g. on a Raspberry Pi ...
Malvineous's user avatar
  • 6,813
0 votes
1 answer
432 views

A system with an Alder Lake CPU fails to reboot under Linux

I'm struggling to disable watchdog0 on my newly installed fedora. I can restart the system after installation, but once I run dnf upgrade --refresh I can no longer reboot. I get a message saying ...
Aidan Ewen's user avatar
0 votes
0 answers
580 views

Watchdog test binary: "Operation not permitted"

I use one of my computers only as a remote-controlled device. Sometimes it gets into a weird state in which it doesn't respond to AnyDesk anymore and doesn't show anything if I connect a screen. I ...
Fabian Röling's user avatar
0 votes
0 answers
84 views

How to close program when it crash?

I have bash script as follows: while [ 1 ]; do <my_command> done If I simulate the end of program with Ctrl+C, it restart the program again. However if the program ends because temporary ...
matousc's user avatar
  • 101
0 votes
1 answer
282 views

ACPI and AMD GPU errors while attempting to install Ubuntu or Mint

I have been trying to dual boot windows and Linux. I am facing similar problems for both Ubuntu and Mint. The attached image shows the errors that i am getting
Raheel Hammad's user avatar
0 votes
0 answers
211 views

CPU#X stuck for 22s!

I am having different hardware errors (see photo below, unfortunately my experience is they are not getting written to disk) with a computer. They occur most often when transferring data over the LAN,...
user avatar
2 votes
2 answers
689 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 ...
Daniel's user avatar
  • 339
2 votes
1 answer
789 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 ...
s5s's user avatar
  • 123
0 votes
1 answer
3k 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 ...
user1173240's user avatar
2 votes
0 answers
636 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 '...
thesillywhat's user avatar
1 vote
1 answer
1k 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 ...
BinarSkugga's user avatar
1 vote
1 answer
724 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 ...
thesillywhat's user avatar
0 votes
0 answers
159 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 ...
JoaoAlby's user avatar
3 votes
2 answers
3k 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 ...
Martin's user avatar
  • 7,496
2 votes
1 answer
539 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 ...
gmalik's user avatar
  • 21
4 votes
0 answers
2k 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: ...
tomptz's user avatar
  • 41
0 votes
0 answers
239 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 ...
rtqate's user avatar
  • 1
6 votes
4 answers
12k 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 ...
Rafael Muynarsk's user avatar
-1 votes
1 answer
108 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 ...
Maks's user avatar
  • 1
1 vote
2 answers
7k 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 ...
RolandU's user avatar
  • 123
0 votes
1 answer
151 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 ...
Boley's user avatar
  • 1
2 votes
1 answer
4k 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 ...
Arun's user avatar
  • 173
1 vote
1 answer
1k 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 ...
user569825's user avatar
1 vote
0 answers
2k 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. ...
Multisync's user avatar
  • 474
1 vote
1 answer
1k 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 ...
zore lu's user avatar
  • 45
1 vote
0 answers
1k 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 ...
Veerendra K's user avatar
10 votes
1 answer
20k 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 ...
Arnab's user avatar
  • 1,571
3 votes
1 answer
405 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 ...
steveroch-rs's user avatar
1 vote
2 answers
8k 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....
Milliways's user avatar
  • 1,378
3 votes
0 answers
468 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=...
a7me63azza8's user avatar
0 votes
1 answer
343 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....
Camandros's user avatar
  • 443
1 vote
1 answer
2k 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!*...
user3447279's user avatar
0 votes
1 answer
4k 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 ...
hmojtaba's user avatar
0 votes
1 answer
6k 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 ...
Robert Pringle's user avatar
1 vote
0 answers
156 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 ...
moviemaniac's user avatar
8 votes
1 answer
11k 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 /...
Udo G's user avatar
  • 1,123
2 votes
1 answer
257 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 ...
mark's user avatar
  • 21