From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 12 06:37:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67E5716A4CE for ; Sun, 12 Dec 2004 06:37:44 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03AC443D41 for ; Sun, 12 Dec 2004 06:37:44 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])iBC6bbDa276046; Sun, 12 Dec 2004 01:37:42 -0500 Message-ID: <41BBE72D.8070000@elischer.org> Date: Sat, 11 Dec 2004 22:37:33 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: Nielsen References: <20041210180332.GA27788@engelschall.com> <20041210234157.478BF840325@mail.npubs.com> <20041211082857.GA5218@engelschall.com> <41BAB35C.8030401@elischer.org> <20041212043508.8C551840B0D@mail.npubs.com> In-Reply-To: <20041212043508.8C551840B0D@mail.npubs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: rc.shutdown and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 06:37:44 -0000 Nielsen wrote: > Julian Elischer wrote: > >> I think we should introduce an "init" process for jails.. >> >> It would be responsible for all that the normal init is responsible for >> except for being the default parent.. (some might argue for that too). >> Sending it a particular signal would notify it to >> send shutdown signals to all its compatriots in the jail etc. > > > This was necessary pre 5.2. Now that's it's possible to do all of this > from the host system (by adding a process to a jail) there's no real > need for an init type process anymore. > > As Michal mentioned, utilities like 'jailer' or 'kjailer' used to be > necessary, but now a few simple utilities or scripts can manage a jail > from the host system just fine. If these utilities were found in FreeBSD > itself, it would round out the jail side of things nicely. > > Of course I'm partial to my own 'jailutils' but others that served the > same purpose would work just as well. > > http://memberwebs.com/nielsen/freebsd/jails/jailutils/ > > The only thing I miss from this change is the inability to have per-jail > consoles (which was possible with the 'jailer' package in 4.x), but > that's another topic. I still prefer the idea of a per-jail init. jsut because one can do it from outside doesn;t mean we SHOUDL do it from outside.. For example the ability to have your own /etc/ttys to restart processes and handle signals in the jail is easier done inside.. We could also suport it even better with a few kernel assists. (e.g register an init with the kernel as the "official" init for the jail). > > Cheers, > Nate > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"