Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2006 12:52:39 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-emulation@FreeBSD.ORG, freebsd@hub.org
Subject:   Re: Linux "jail" ... possible?
Message-ID:  <200609251052.k8PAqdLs070291@lurza.secnetix.de>
In-Reply-To: <20060922090239.F1031@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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