this post was submitted on 14 Sep 2023
12 points (100.0% liked)

Debian

849 readers
2 users here now

❤️ Debian

Rules

founded 1 year ago
MODERATORS
 

Hi,

I do believe from time to time there are important updates that need you to reboot your server, but how often? I'm thinking about kernel updates, let's say every month... What are you practices and recommendations?

you are viewing a single comment's thread
view the rest of the comments
[–] vegetaaaaaaa 3 points 1 year ago (1 children)

I have a script that runs nightly via cron, it checks if a reboot is required through needrestart, logs the action and reboots the host if required (kernel update or glibc update): https://github.com/nodiscc/xsrv/blob/master/roles/monitoring_netdata/files/usr_local_bin_needrestart-autorestart

Nightly is a baseline, if requirements dictate that the host should not reboot without warning at 5am, I adjust the cron expression.

[–] Syrup 1 points 1 year ago

Wow, great... Didn't know about needrestart