[Initng] How to run a program on reboot

Ismael Luceno ismael.luceno at gmail.com
Sat Mar 24 02:11:40 CET 2007


Jorge Peixoto de Morais Neto escribió:
> 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").

This isn't possible with the current initng, you need to implement
it inside of initng.

I will try to fix this kind of issues after the 0.6.10 release.

> 
> On 3/23/07, *Eric MSP Veith * <eveith at wwweb-library.net
> <mailto:eveith at wwweb-library.net>> wrote:
> 
> Only when _re_booting?
> 
> On Friday 23 March 2007, "Jorge Peixoto de Morais Neto"
> <please.no.spam.here at gmail.com
> <mailto:please.no.spam.here at gmail.com>> wrote:
>> How can I tell initng to run kexec -e on reboot?
> 
>> Thank you.
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://jw.dyndns.org/pipermail/initng/attachments/20070323/02d3e21d/attachment.pgp 


More information about the Initng mailing list