Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Saudi Arabia Narcotics Execution: Saudi Arabia hangs Iraqi nationals convicted in northern border drug smuggling case. world News

    April 30, 2026

    Google Photos’ new AI feature turns your clothes into a digital wardrobe

    April 30, 2026

    Google Photos’ new AI feature turns your clothes into a digital wardrobe

    April 30, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Saudi Arabia Narcotics Execution: Saudi Arabia hangs Iraqi nationals convicted in northern border drug smuggling case. world News
    • Google Photos’ new AI feature turns your clothes into a digital wardrobe
    • Google Photos’ new AI feature turns your clothes into a digital wardrobe
    • Real progress has been made in tackling the complex issues facing the UN system – global issues
    • Private debt risks loom large for Europe’s banks this earnings season
    • London police say stabbing of two Jewish men is an act of terrorism. the suspect was arrested
    • Unilever sales rise due to strong demand in India, Brazil
    • US reviews troop reduction in Germany amid Trump’s Berlin row
    Facebook X (Twitter) Instagram Pinterest
    Christian Corner
    • Home
    • Scriptures
    • Bible News
    • Bible Verse
    • Daily Bread
    • Prayers
    • Devotionals
    • Meditation
    Christian Corner
    Home»Devotionals»I installed this Linux ‘watchdog’ and now my system auto-reboots when locked
    Devotionals

    I installed this Linux ‘watchdog’ and now my system auto-reboots when locked

    adminBy adminApril 22, 2026Updated:April 22, 2026No Comments5 Mins Read0 Views
    Share Facebook Twitter Pinterest LinkedIn Tumblr Email
    I installed this Linux 'watchdog' and now my system auto-reboots when locked
    Share
    Facebook Twitter LinkedIn Pinterest Email

    AssasinatorCzar via iStock/Getty Images Plus

    Follow ZDNET: Add us as a favorite source On Google.


    ZDNET Key Takeaways

    • If your Linux system locks up, it may need to reboot.
    • This can be automated with the help of a small application.
    • Watchdog is easy to install and free to use.

    I have several Linux systems connected to my home lab; Some of them are desktop, and some of them are server. Ninety-nine percent of the time, those machines work flawlessly. When that one percent happens, any machine going south needs help.

    One way to help is through a small software package called Watchdog. This part of the software runs various checks to see if the hardware is “locked up.” If it detects that this has happened, it will reboot the machine.

    Too: 6 reasons why a minimal Linux install might be the smartest move you’ve made

    There are two types of watchdogs: software and hardware. Hardware Watchdog is more reliable, but it requires specialized hardware to work. Software Watchdog is not as reliable, but it works on most Linux systems.

    How does a watchdog work?

    A kernel module (Softdog), together with the watchdog service, watches the system with a countdown timer.

    • A virtual device has been created (/dev/watchDog).
    • If the virtual device is “kicked” by a process, the timer is reset.
    • If the virtual device is not “kicked” by any process, the watchdog reboots the system.

    It’s simple in theory, but its foundation is much more complex. Luckily, as a user, you don’t have to dig too deep to find out the essence of Watchdog.

    Also: The First 8 Linux Commands Every New User Should Learn

    Although Watchdog may be necessary for servers (especially those that do not have a monitor, keyboard, or mouse connected), it can also be useful for desktops. For example, let’s say you need to log into a Linux machine on your home network from work. If that machine is locked, you will not be able to access it. If that machine is monitored by Watchdog, it will reboot, and you will be able to access it.

    This can be very useful.

    You might think that setting up Watchdog is hard, but you’ll be surprised that it’s not that big of a challenge, even if you’re just starting out with Linux.

    Also: My 5 Linux Commands for Troubleshooting – and How I Use Them

    Let me show you how it’s done.

    How to install watchdog

    what you’ll need: I’m going to demonstrate this on a machine running Ubuntu 24.04. Watchdog is found in the standard Ubuntu repositories (as well as the Fedora standard repositories). For Arch users, you will need to use yay to install this software. You will also need a user with sudo privileges.

    The first thing to do is install watchdog, which can be done with the command:

    show more

    sudo apt-get install watchdog -y

    If you’re using a Fedora-based machine, the command is:

    sudo dnf install watchdog -y

    For Arch, it is:

    wow -s sentinel

    After Watchdog is installed, you need to load the Softdog kernel module, which is done with:

    show more

    sudo modprobe softdog

    Verify that the module is loaded with:

    LSMOD | Grape Softdog

    If you see Softdog listed, it has loaded successfully.

    Also: Best Linux Laptops in 2026: Expert-Tested for Students, Hobbyists, and Professionals

    Check to make sure the device node exists with:

    ls -la /dev/watchdog

    You also need to load the watchdog kernel module on boot. If you don’t do this, the service will not run after a reboot (so it won’t be able to see the system). This is done with:

    show more

    Supervision

    Make sure this command is typed correctly.

    Jack WallenZDNET

    You are now ready to configure Watchdog.

    How to configure watchdog

    With watchdog running, you’ll want to make sure that the configuration file is set up such that it will actually do what it’s supposed to do. This is done through a configuration file. Open that file with the command:

    sudo nano /etc/watchDog.conf

    In that file, look for the following lines (they are not found consecutively in the file):

    # watchdog-device=/dev/watchdog

    # interval = 1

    # watchdog-timeout = 20 # Time in seconds before reboot

    # real time = yes

    # priority = 1

    # max-load-1 = 24

    # max-load-5 = 18

    # max-load-15 = 12

    # min-memory = 1

    You need to remove the # and spaces before each line. Note: If you don’t see watchdog-timeout=20 line, add it manually.

    Save and close the file.

    You will then need to start and enable the service with the command:

    sudo systemctl enable–now watchdog

    Watchdog is now running in the background and will do its job if something goes wrong.

    Too: You Can Use Linux 7.0 on These 7 Distros Today – Here’s What to Expect

    If you want to check whether the watchdog is working, you can manually cause a kernel panic with the following three commands:

    sudo sysctl -w kernel.sysrq=1

    sudo su –

    echo C > /proc/sysrq-trigger

    The system will become unresponsive, and Watchdog should reboot it.

    hardware method

    If you have a hardware watchdog, systemd can be configured to kick it in and enforce a reboot. Here’s how you configure it.

    Open the systemd config file with:

    sudo nano /etc/systemd/system.conf

    Find the following lines:

    #RuntimeWatchDogSec=0

    #rebootwatchdogssec=10min

    #watchdogdevice=

    Change those lines to:

    runtimewatchdogsec=30

    rebootwatchdogsec=10min

    watchdogdevice=/dev/watchdog

    Save and close the file.

    Also: My proven way to speed up Linux when upgrading RAM isn’t worth it (and it’s free to do)

    Restart the systemd daemon with:

    sudo systemctl daemon-reload

    And there you have it. You now have a service that is monitoring your system and will reboot it if things go wrong.

    autoreboots installed Linux locked System watchdog
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Bible News

    Real progress has been made in tackling the complex issues facing the UN system – global issues

    April 30, 2026
    Devotionals

    Best VPNs for Small Businesses in 2026: Expert Tests and Reviews

    April 30, 2026
    Devotionals

    Hardik Pandya launches hate campaign against Mumbai Indians fans amid IPL 2026

    April 30, 2026
    Devotionals

    OnePlus Pad 4 takes on Galaxy Tab S11 Ultra and iPad Pro with better battery and better price

    April 30, 2026
    Devotionals

    Deutsche Bahn is very good for Maiden

    April 30, 2026
    Devotionals

    Motorola unveils 2026 Razr 70, Razr 70 Plus and Razr 70 Ultra

    April 30, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    Editor's Picks

    Christian college campus in Pace gets zoning board approval

    March 13, 2026

    Scientists discover a universal temperature curve that governs all life

    March 13, 2026

    In praise of hard work

    March 13, 2026

    AAUW Amador Branch Complaint and Coveration – Tuesday, March 24 | on the vine

    March 13, 2026
    Latest Posts

    Saudi Arabia Narcotics Execution: Saudi Arabia hangs Iraqi nationals convicted in northern border drug smuggling case. world News

    April 30, 2026

    Google Photos’ new AI feature turns your clothes into a digital wardrobe

    April 30, 2026

    Google Photos’ new AI feature turns your clothes into a digital wardrobe

    April 30, 2026

    News

    • Bible News
    • Bible Verse
    • Daily Bread
    • Devotionals
    • Meditation

    CATEGORIES

    • Prayers
    • Scriptures
    • Bible News
    • Bible Verse
    • Daily Bread

    USEFUL LINK

    • About Us
    • Contact us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2026 christiancorner.us. Designed by Pro.
    • About Us
    • Contact us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions

    Type above and press Enter to search. Press Esc to cancel.