November
18
Linux: Red Hat Satellite job for updating and rebooting without a failed status
yum -y update ; shutdown -r +1 &
A “fail safe” option would be to run this from screen. This helps to protect system corruption in the event of a network drop.
screen -AmdS bash_shell bash ; screen -S bash_shell -p 0 -X stuff $’yum update -y\r’ ; screen -S bash_shell -p 0 -X stuff $’reboot\r’
The problem with this option is it always shows everything ran successfully.