Determining if a reboot is required on Linux
I've been using the construct sudo run-parts /etc/update-motd.d/ to determine if recent system updates required a reboot.
Today I learned I can simply check for the existence of the file /var/run/reboot-required.