[Initng] How to run a program on reboot
Jorge Peixoto de Morais Neto
please.no.spam.here at gmail.com
Fri Mar 23 18:10:45 CET 2007
I mean *before* reboot.
kexec, as you may already know, is a mechanism to load a new kernel image.
So you can "reboot" your computer without going through all the BIOS
initialization stuff. It has important uses, like getting a reliable crash
dump, and a cool thing about it is that it makes rebooting much faster.
First you load the kernel image, with a command like.
kexec -l /boot/vmlinuz --append="root=/dev/hda2 init=/sbin/initng"
Then, if you issue the command kexec -e, the system will immediately execute
the new kernel.
So I want a mechanism to issue kexec -e at the very last step of the reboot
process (by the time initng says "Goodbye").
On 3/23/07, Eric MSP Veith <eveith at wwweb-library.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Only when _re_booting?
>
> On Friday 23 March 2007, "Jorge Peixoto de Morais Neto"
> <please.no.spam.here at gmail.com> wrote:
> > How can I tell initng to run kexec -e on reboot?
> >
> > Thank you.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
>
> iD8DBQFGA/dIMpEdE19y46cRApmkAJ9G7nc1m0xRBQBj1bCP3hfMEVAsmACePa1f
> F+3N/05RnVvXVkBRp3aV62Y=
> =rTnZ
> -----END PGP SIGNATURE-----
>
--
Software is like sex: it is better when it is free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jw.dyndns.org/pipermail/initng/attachments/20070323/04ece6f6/attachment.htm
More information about the Initng
mailing list