On Sat, 2011-07-30 at 21:46 +0930, Arthur Marsh wrote: > Hi, I re-read the manual page for kexec from: > > kexec-tools 1:2.0.2-1 > > OPTIONS > -e (--exec) > Run the currently loaded kernel. Note that it calls > shutdown (8) > > and then the manual page for shutdown (8): > > DESCRIPTION > shutdown brings the system down in a secure way. All > logged-in users > are notified that the system is going down, and login(1) is > blocked. > > > I logged in remotely to this pc, became root then ran: > > /etc/init.d/kexec-load stop > > to load a kernel, then > > kexec -e > > I was not given the normal shutdown warning message and the pc rebooted > immediately. > > It appears that the manual page for kexec is incorrect about the > behaviour of "kexec -e".
Hi Arthur, You are absolutely right. man page does say shutdown will be called for "kexec -e" but that is not what the code does. The code immediately makes the system call kexec_reboot() instead of calling shutdown(8). For now I will correct the man page. I will ping the kexec community to see what the real intent is for "-e". Thanks for catching this. -- =================== Khalid Aziz kha...@debian.org -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org