Automatic packages – how to know if system needs to restart:
Update manager suggests to restart when kernels are upgraded or some other system packages with services that are marked for reboot when upgraded.
In this case /var/run/reboot-required is set by a package installation script.