started playing with jails

Bill Moran wmoran at potentialtech.com
Wed Mar 21 16:28:53 UTC 2007


In response to Greg Barniskis <nalists at scls.lib.wi.us>:

> Bill Moran wrote:
> 
> > I've had trouble getting programs that use shared memory (such as Postgres)
> > to run inside a jail, but it's been a while since I've tried.
> 
> Postgres needs this in the host rc.conf:
> 
> jail_sysvipc_allow="YES"

My experiments with Postgres in jail predate the existence of that setting.
When I was working with it, you had to frob a sysctl via /etc/sysctl.conf

But even then, I couldn't seem to get it to work -- the Postgres in the
jail would corrupt the shared memory of the postgres outside the jail.
It was ugly.  Imagine big, wet tears rolling down my cheeks.

I haven't had the need to try it in a while, so it might work OK now, I
just don't know.

-- 
Bill Moran
http://www.potentialtech.com


More information about the freebsd-questions mailing list