• 1 reply
  • Latest Post - ‏2013-05-01T15:41:20Z by Luke.Foelske
2 Posts

Pinned topic Restart Needed - Linux

‏2013-04-16T15:54:04Z |

Is there a way to determine if after a kernel patch, that a linux box needs to be restarted?  I'm attempting to manually set up patches for RHEL6 by running an SH action with:

yum -y update


The problem is that if it's a kernel update, the endpoint needs to restart.

  • Luke.Foelske
    2 Posts

    Re: Restart Needed - Linux


    I've figured out how to do this myself.


    Run an sh task before doing any Linux patching with the following code:

    sudo yum list updates | grep 'kernel' > /tmp/kernelupdatecheck

    Then run a check if the file is empty. If it is not, then there was a kernel update and you know that you will have to reboot.