[Pkg-sysvinit-devel] Bug#387599: initscripts: Support for kexec

Petter Reinholdtsen pere at hungry.com
Fri Sep 22 15:54:01 UTC 2006



> I am really open to any suggestions to see this integrated. I first
> thought to create a special package to handle this, but I guess
> letting this job done by initscripts is better.

I had a look, and believe the best way would be to add it to the
kexec-tools package.  It should insert itself just before the reboot
script in /etc/rc6.d/, and list a runtime stop dependency on reboot to
make shre the lsb dependecy graph is correct.  If the script just fail
and continue if kexec fail, the reboot script will take over and the
machine would still restart, only somewhat slower. :)

I do not believe the kexec init.d script belong in the initscripts
package, because that would add a dependency on kexec-tools for all
machines using initscripts.

The LSB header of the script owuld look something like this:

  ### BEGIN INIT INFO
  # Provides:          kexec
  # Required-Start:
  # Required-Stop:     halt
  # Default-Start:
  # Default-Stop:      6
  # Short-Description: Restart the machine using kexec for quick reboot
  ### END INIT INFO

Friendly,
-- 
Petter Reinholdtsen




More information about the Pkg-sysvinit-devel mailing list