334
submitted 2 months ago by Flax_vert@feddit.uk to c/selfhosted@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] brewery@feddit.uk 5 points 2 months ago

I have a mix of Debian and Ubuntu servers. I'll update manually anyway but for future cases, would unattended-upgrades set to security upgrades run daily be enough to stop this type of issue?

[-] vegetaaaaaaa@lemmy.world 14 points 2 months ago* (last edited 2 months ago)

This is a kernel bug, unattended-upgrades will take care of installing the new kernel once the fix is published, but you still have to reboot to load it. I've set up a cron job that runs needrestart nightly and reboots my servers if there is a pending kernel upgrade [1]

[-] possiblylinux127@lemmy.zip 7 points 2 months ago* (last edited 2 months ago)

Unattended-upgrades has a config option to auto reboot

[-] Miaou@jlai.lu 2 points 2 months ago* (last edited 2 months ago)

Every time I see people boasting about their uptime, I ask myself how old their kernel actually is.

I've set this auto reboot and never had to worry about patching my server.

Edit: yeah I know live patching is a thing, not worth the hassle for 99% of server workloads.

[-] vegetaaaaaaa@lemmy.world 1 points 2 months ago

True.

But by default the unattended-upgrades timer has a randomized trigger time (so that not all Debian machines in the world start hammering the mirrors at the same time). If you enable the auto reboot option in unattended-upgrades, your boxes will reboot at an unpredictable time. I prefer doing this at known times (middle of the night when I know nothing important is running/number of users is low).

[-] possiblylinux127@lemmy.zip 1 points 2 months ago

You can set a time in the config file

Admittedly your cron job does the same thing but I like to have everything in one place

this post was submitted on 30 Apr 2026
334 points (98.3% liked)

Selfhosted

60542 readers
579 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS