332
you are viewing a single comment's thread
view the rest of the comments
[-] vegetaaaaaaa@lemmy.world 14 points 2 weeks ago* (last edited 2 weeks 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 weeks ago* (last edited 2 weeks ago)

Unattended-upgrades has a config option to auto reboot

[-] Miaou@jlai.lu 2 points 2 weeks ago* (last edited 2 weeks 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 weeks 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 weeks 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
332 points (98.3% liked)

Selfhosted

59336 readers
865 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 posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

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

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS