Ubuntu Check if Restart Required

June 15, 2019

Check if /var/run/reboot-required exist.

cat /var/run/reboot-required
*** System restart required ***

You can also check reboot-required.pkgs.

cat /var/run/reboot-required.pkgs
linux-base
dbus

You can edit you startup script to perform the check.

if [ -f /var/run/reboot-required ]; then
    cat /var/run/reboot-required
fi
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.