On Monday 26 November 2001 03:45 am, Antony T Curtis wrote: > Robert Watson wrote: > > On Sun, 25 Nov 2001, Gregory Neil Shapiro wrote: > > <snip> > > > In the jailng code, I allow jails to be identified using a name (other > > than the hostname) when they are created, and that can later be used as a > > handle for signalling. Two of the concepts that are useful in jailng are > > (1) the ability to identify jails and manage them from the outside more > > easily, and (2) jailinit, which permits a jail to maintain a runlevel, > > meaning that you don't have to be 'in' a jail in order to start an > > orderly shutdown (as you can signal jailinit), not to mention introducing > > the notion of an orderly shutdown :-). > > <snip> > > I currently make use of a hacked version of init which allows me to have > a whole "system" in a jail - this allows me to telnet in to a jail and > do a shutdown. > > The only downside is that many things expect init to be pid=1 but in the > jail, this isn't true - I keep the pid of the init in a temporary file > (ugly hack, a better "hack" would probably involve hacking the kernel > sources so that the jailed pid is "1" and that when that process dies, > the whole jail gets a kill -9.
http://www.jailbsd.net/tarballs/jailinit.rat.gz This is a little something that I whipped up some time back, but haven't put much effort into lately. Sam To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message