postgresql in a jail: manually starts but not while booting

Boris Samorodov bsam at ipt.ru
Sat Jul 21 23:05:43 UTC 2007


On Sun, 22 Jul 2007 00:42:00 +0400 Boris Samorodov wrote:

> I've got a recent amd64-current with postgresql in a jail. The
> database master process starts from command line but not when
> the host system is booted (and the jail is auto-started):
> -----
> Jul 22 00:10:17 pg postgres[1134]: [2-1] FATAL:  could not create shared memory segment: Function not implemented
> Jul 22 00:10:17 pg postgres[1134]: [2-2] ПОДРОБНОСТИ:  Failed system call was shmget(key=5432001, size=39149568, 03600).
> -----

OK, I found the culprit. Seems that man jail(8) may be polished a
little. From man jail(8), section "Starting the Jail":
-----
It is possible to have jails started at boot time.  Please refer to the
``jail_*'' variables in rc.conf(5) for more information.
-----

I propose to add the following note to man jail(8):
-----
Note: those variables override sysctl values (both current and from
/etc/sysctl.conf).
-----


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-current mailing list