I want apt-get update to direct a script to direct it to reboot a system. I want a system to run apt-get update, if there are updates reboot. This is to keep a simple system updated. The answer might be a little complicated, and I can't seem to get started figuring this out.
System runs Debian Wheezy. It is at defaults with one human user running scripts and rsync on it. Nothing fancy.
Use the unattended-upgrades package for apt. There's an option to reboot if necessary:
For a nice writeup, see: http://linux-audit.com/using-unattended-upgrades-on-debian-and-ubuntu/