public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Keep initrd tasks running?
@ 2005-10-18 19:13 John Richard Moser
  2005-10-18 19:29 ` Jeff Bailey
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: John Richard Moser @ 2005-10-18 19:13 UTC (permalink / raw)
  To: linux-kernel, ubuntu-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have no idea who's the best to ask for this.

I want to start a task in an initrd and have it stay running after init
is started.  Pretty much:


 - kernel boot
 - initrd loaded
 - linuxrc executes
 - /bin/mydaemon runs
 - mount rootfs
 - pivot_root
 - exec /sbin/init (PID=1; linuxrc and sh is replaced)
 - mydaemon keeps running, reparented under init, uninterrupted


What's the feasibility of this without the system balking and vomiting
chunks everywhere?  I'm pretty sure 'exec /sbin/init' from linuxrc
(PID=1) will replace the process image of sh (linuxrc) with init,
keeping PID=1; but I'm worried this may terminate children too.  Haven't
tried.

(this actually has a useful application)
- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.

    Creative brains are a valuable, limited resource. They shouldn't be
    wasted on re-inventing the wheel when there are so many fascinating
    new problems waiting out there.
                                                 -- Eric Steven Raymond
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDVUlKhDd4aOud5P8RAuTeAJ9z7F+aeLZgnHzuzyviSXhJG/d5egCcCoxs
GpD7wLP+ZngCsYFLGsmEXb0=
=w6xA
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-10-23 20:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 19:13 Keep initrd tasks running? John Richard Moser
2005-10-18 19:29 ` Jeff Bailey
2005-10-18 19:38   ` John Richard Moser
2005-10-18 21:43     ` Jeff Bailey
2005-10-19  3:35   ` Phillip Susi
2005-10-19  4:22     ` John Richard Moser
2005-10-19 18:52       ` Phillip Susi
2005-10-23 20:40         ` Matt Zimmerman
2005-10-23 20:38       ` Matt Zimmerman
2005-10-18 19:37 ` linux-os (Dick Johnson)
2005-10-19 11:07 ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox