From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 25 10:52:49 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.ORG Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4F6D16A47C for ; Mon, 25 Sep 2006 10:52:49 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C6A643D77 for ; Mon, 25 Sep 2006 10:52:47 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (dilcle@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k8PAqdN0070292; Mon, 25 Sep 2006 12:52:45 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k8PAqdLs070291; Mon, 25 Sep 2006 12:52:39 +0200 (CEST) (envelope-from olli) Date: Mon, 25 Sep 2006 12:52:39 +0200 (CEST) Message-Id: <200609251052.k8PAqdLs070291@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, freebsd@hub.org In-Reply-To: <20060922090239.F1031@ganymede.hub.org> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 25 Sep 2006 12:52:45 +0200 (CEST) Cc: Subject: Re: Linux "jail" ... possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG, freebsd@hub.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 10:52:49 -0000 Marc G. Fournier wrote: > Oliver Fromme wrote: > > Sure, I've done that before. Just use /bin/sh as start > > command to get a root shell within the linux jail. > > You can also directly run apachectl to start an apache > > within the linux jail, etc. (might require a wrapper > > script to setup $PATH and other things within the jail, > > though). > > What about stuff like cron, syslog, etc? Depends on the type of service that you run inside the jail. If you need to run cronjobs within it, then run cron inside the jail. Same with syslog. Another possibility is to let the hosts' syslog daemon open an additional socket within tha jail, so you don't have to run a separate syslog daemon inside the jail. > For instance, when we start up a freebsd jail, we run /etc/rc to make sure > all processes are started ... I never do that. :-) > is there an equivalent that can be run > within the gentoo/linux tree? I'm not aware of one ... You can simply create a small shell script yourself that starts all daemons that you need within the jail. Usually it's not that many. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often.