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

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.

Updated on 2013-05-01T15:41:28Z at 2013-05-01T15:41:28Z by Luke.Foelske
  • Luke.Foelske
    Luke.Foelske
    2 Posts
    ACCEPTED ANSWER

    Re: Restart Needed - Linux

    ‏2013-05-01T15:41:20Z  in response to Luke.Foelske

    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.