Friday, June 1, 2012

Ubuntu: How to Know Reboot Required After OS Patch

Check for presence of file /var/run/reboot-required

if [ -f /var/run/reboot-required ]; then
    reboot
fi

No comments:

Post a Comment