Re: "/sbin/init" source code

From: Andries Brouwer (aeb@veritas.com)
Date: Tue Jun 06 2000 - 15:44:40 EST


On Tue, Jun 06, 2000 at 01:13:57PM +0200, Amelia De Vivo wrote:

> I'm working with a 2.2.14 kernel code. In the "init" function in
> "linux/init/main.c" file there is a call to execve("/sbin/init".......).
> Could someone tell me where the source code for this executable file is?

You write init.c, compile it, and put it in /sbin/init.
It has no relation to the kernel. There are various more or less
standard choices. For example,
        % rpm -qf /sbin/init
        sysvinit-2.78-14
There is also a simple init in the util-linux distribution.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:26 EST