How do I know if my ubuntu server needs a restart?
A file at /var/run/reboot-required is created that's used at login to tell you a restart is needed in the MOTD. You can check for the presence of this file to know if the updates you just did require a restart To do something with this information we can…