this post was submitted on 30 Apr 2026
333 points (98.0% liked)

Selfhosted

60093 readers
940 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require your active participation in selfhosting or related communities, or the post will be removed. No more than 10% of your posts or comments may be self-promotional, or your post will be removed. F/LOSS Exception: If your post is about a project that is completely open source & can be self-hosted in full without payment, and your account is at least 7 days old, your post is exempt from this rule as long as you continue to engage in comments.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] brewery@feddit.uk 5 points 1 month ago (1 children)

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 1 month ago* (last edited 1 month ago) (1 children)

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 1 month ago* (last edited 1 month ago) (2 children)

Unattended-upgrades has a config option to auto reboot

[–] Miaou@jlai.lu 2 points 1 month ago* (last edited 1 month 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 1 month ago (1 children)

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 1 month 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