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:
- Use `kexec -l` to load all the files you need into RAM, while they're still available
- Run `reboot`
- 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.
- in Ubuntu, the /etc/rc6.d/S85kexec script does this