paperlined.org
sysadmin > boot > kexec-resident
document updated 15 years ago, on Sep 16, 2009
If you do a kexec incorrectly, it won't gracefully shutdown. The proper way to do it is to:
  1. Use `kexec -l` to load all the files you need into RAM, while they're still available
  2. Run `reboot`
  3. One of your /etc/init.d/ scripts should run `kexec -e` EVERY time you reboot. If this happens, then on normal reboots, this command will fail silently, but when you have a kernel loaded, it'll skip to the kernel instead of rebooting.