Script for checking if latest installed kernel is running
Install script in /usr/local/bin
Add entries to root crontab
Better place for logs (and rotate them)
Put this all in an RPM
Compare to how cloud OS does this check at login
Generalise for different distributions
One-line command? For easy cut-and-paste
https://access.redhat.com/discussions/2485141
https://access.redhat.com/solutions/27943
https://access.redhat.com/discussions/3106621
https://megamorf.gitlab.io/2019/06/10/check-if-reboot-is-required-after-installing-linux-updates
Also check out: man needs-restarting