Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 1998 10:21:45 GMT
From:      Jim Shankland <jas@flyingfox.com>
To:        abial@nask.pl, current@FreeBSD.ORG
Subject:   Re: Custom init(8)
Message-ID:  <199802041021.KAA28165@foxdev.parker.net>

next in thread | raw e-mail | index | archive | help
> For all of you who want only to remind me of existence of
> /usr/src/sbin/init.c:  please talk to /dev/null ... 
> 
> Sorry, but this really doesn't help me to know how _the simplest_ possible
> init(8) could look like...

It really depends on what you want to do.  The simplest possible init
is:

main()

{
	while (1)
		;
}

You have two choices:  either start with /usr/src/sbin/init.c, and rip
out the stuff you don't want; or start with the above template, and
add the stuff you *do* want.

Jim Shankland
Flying Fox Computer Systems, Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802041021.KAA28165>