Restart Needed - Linux

(imported topic written by Luke.Foelske)

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.

(imported comment written by 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.