Urgent.News

What's breaking now, across thousands of outlets.

Tech

Stop Paying Full Reboot Downtime: Practical systemd soft-reboot on Linux

You finished a userspace package update. Libraries changed. Daemons need a clean boot graph. The box is “up,” but half the stack is still running the old generation. The reflex is reboot . That means firmware, bootloader, kernel bring-up, initrd, and every cold-start cost that comes with them—even when the kernel itself did not change. systemd has a narrower tool for that case: soft-reboot . It…

This article provides a practical guide on using systemd soft-reboot on Linux systems. When you perform a package update, libraries change and daemons need to be restarted. Rebooting the entire machine brings numerous costs, even when the kernel itself hasn't changed. systemd offers a more efficient alternative called soft-reboot.

Soft-reboot tears down and restarts userspace while the kernel remains running. As a result, downtime decreases from a full machine cycle to just restarting the service manager and starting a new boot transaction. This article explains when and how to use soft-reboot, the prerequisites, and what to expect after a soft-reboot.

Soft-reboot is not a faster reboot but a separate contract: it keeps the kernel state continuous while the userspace state changes unless you manually pin the survivors. The prerequisites for using soft-reboot are having a systemd version of 254 or higher, root or equivalent power user rights, and a reason for the userspace-focused operation, such as package refresh or image-based root handoff.

Before performing a soft-reboot, it's essential to record a baseline, inspect the boot identity, and verify the values of various timestamps. After a successful soft-reboot, you should notice changes in the userspace timestamp, the kernel timestamp, and the firmware timestamp. The journalctl command can be used to check for failed services and determine if the system is still running on the same root filesystem.

Remember, soft-reboot is not a substitute for a full reboot or kexec in cases where kernel, firmware, or hardware topology changes are required.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

If not Python venv, then what?

For years, python -m venv .venv has been the default answer to Python dependency management and isolation. It works, it’s built into Python and almost every tutorial assumes you’ll use it.

Posting about online presentations

I organize online presentations about various topics in computing. (e.g. Python, Rust, Go, Databases, DevOps etc.) I also monitor many other channels that have online "meetups".

Ask canvas for a WebP in Safari and you silently get a PNG

Every browser-based WebP converter I looked at is built on one line: canvas . toBlob ( blob => { /* ... */ }, ' image/webp ' , quality ) It's a reasonable place to start.

  • Safari returns PNG instead of WebP when request made via canvas
  • toBlob method fails silently if WebP unsupported
  • Detect issue by checking blob type after conversion

More from Monday 7 September →